Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
GITHUB_EVENT_NAME = release
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSp committed Apr 11, 2020
1 parent 5c3c906 commit fcaee9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,11 @@ jobs:
- name: Deploy
run: |
gcloud container clusters get-credentials "$GKE_CLUSTER" --zone "$GKE_ZONE" --project "$GKE_PROJECT_ID"
env
echo -n "${CLOUD_SQL_SERVICE_ACCOUNT}" > chart/cloudsql.base64.json
echo -n "${CLOUD_STORE_SERVICE_ACCOUNT}" > chart/cloudstore.base64.json
helm repo add stable "https://kubernetes-charts.storage.googleapis.com"
helm upgrade --install traefik stable/traefik -f chart/traefik.values.yaml
if [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
if [[ "$GITHUB_EVENT_NAME" == "release" ]]; then
helm upgrade --install imis-production chart \
--set gitSha=${GITHUB_SHA} --set "secrets.postgres=$(echo -n ${POSTGRES_PASSWORD} | base64)"
kubectl rollout status deployment/imis-production
Expand Down

0 comments on commit fcaee9d

Please sign in to comment.