Verified Commit a74ffec1 authored by justin's avatar justin
Browse files

Update deploy stage to only run on tags.

Use except: [ branches ] to exclude tags off of master.
parent ff4a322d
Pipeline #542 passed with stages
in 4 minutes and 17 seconds
......@@ -148,8 +148,9 @@ deploy-helm:
- helm upgrade --install --namespace $KUBERNETES_NAMESPACE boxomon-frontend --values $CI_PROJECT_DIR/deploy/helm-upgrade/frontend-values.yaml --set image.tag=$CI_COMMIT_REF_SLUG $CI_PROJECT_DIR/deploy/boxomon-charts/frontend
- helm upgrade --install --namespace $KUBERNETES_NAMESPACE boxomon-backend --values $CI_PROJECT_DIR/deploy/helm-upgrade/backend-values.yaml --set image.tag=$CI_COMMIT_REF_SLUG $CI_PROJECT_DIR/deploy/boxomon-charts/backend
only:
- master
- tags
except:
- branches
deploy-kubectl:
stage: deploy
......@@ -161,8 +162,9 @@ deploy-kubectl:
script:
- kubectl apply -f $CI_PROJECT_DIR/deploy/kubectl-apply/
only:
- master
- tags
except:
- branches
deploy-assets:
stage: deploy-assets
......@@ -177,5 +179,6 @@ deploy-assets:
- gsutil -m rsync -r -d frontend/src/assets/sound gs://boxomon-assets/sound
- gsutil cors set data/cors.json gs://boxomon-assets
only:
- master
- tags
except:
- branches
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment