Created
May 12, 2020 12:55
-
-
Save merltron-pa/17869e97ec2eff5133e7360a31fe0d92 to your computer and use it in GitHub Desktop.
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
- name: Deploy Release on cluster | |
env: | |
GCLOUD_KEY: ${{ secrets.GCLOUD_KEY }} | |
run: | | |
echo "$GCLOUD_KEY" | base64 --decode > ${HOME}/gcloud.json | |
gcloud auth activate-service-account --key-file=${HOME}/gcloud.json | |
gcloud auth configure-docker | |
gcloud container clusters get-credentials \ | |
${{ env.CLUSTER_NAME }} --zone | |
${{ env.CLUSTER_ZONE }} --project ${{ env.PROJECT_NAME }} | |
# install/upgrade helm chart | |
helm upgrade --install backend ./deploy/helm/backend \ | |
--values ./deploy/helm/backend/env.values.${{ env.CLUSTER_ENV }}.yaml \ | |
--set env_values.image_version=${{ env.RELEASE_VERSION } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment