-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
55 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
get-version: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
release_version: ${{ steps.get_release_version.outputs.release_version }} | ||
steps: | ||
- name: Get release version | ||
id: get_release_version | ||
run: echo ::set-output name=release_version::${GITHUB_REF#refs/*/} | ||
- name: Check output | ||
env: | ||
RELEASE_VERSION: ${{ steps.vars.outputs.release_version }} | ||
run: | | ||
echo $RELEASE_VERSION | ||
echo ${{ steps.vars.outputs.release_version }} | ||
publish-helm-charts: | ||
runs-on: ubuntu-latest | ||
needs: get-version | ||
env: | ||
HELM_VERSION: v2.16.9 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master | ||
with: | ||
version: '290.0.1' | ||
export_default_credentials: true | ||
project_id: ${{ secrets.GCP_PROJECT_ID }} | ||
service_account_key: ${{ secrets.GCP_SA_KEY }} | ||
- run: gcloud auth configure-docker --quiet | ||
- name: Validate chart versions | ||
run: make lint-versions | ||
- name: Remove previous Helm | ||
run: sudo rm -rf $(which helm) | ||
- name: Install Helm | ||
run: ./infra/scripts/install-helm.sh | ||
- name: Publish Helm charts | ||
run: ./infra/scripts/sync-helm-charts.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
readonly HELM_URL=https://storage.googleapis.com/kubernetes-helm | ||
readonly HELM_TARBALL="helm-${HELM_VERSION}-linux-amd64.tar.gz" | ||
readonly STABLE_REPO_URL=https://kubernetes-charts.storage.googleapis.com/ | ||
readonly INCUBATOR_REPO_URL=https://kubernetes-charts-incubator.storage.googleapis.com/ | ||
curl -s "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" | tar -C /tmp -xz | ||
sudo mv /tmp/linux-amd64/helm /usr/bin/helm | ||
helm init --client-only | ||
helm repo add incubator "$INCUBATOR_REPO_URL" |