Update existing managed instance groups on deploy

This commit is contained in:
Deirdre Connolly 2020-06-19 03:26:31 -04:00 committed by Deirdre Connolly
parent 509f0763ad
commit 2f87a9a9f6
1 changed files with 15 additions and 7 deletions

View File

@ -73,12 +73,20 @@ jobs:
# --description="Allow incoming Zcash traffic from anywhere" \
# Deploy managed instance group using the new instance template
- name: Deploy managed instance group
# - name: Deploy managed instance group
# run: |
# gcloud compute instance-groups managed create \
# "zebrad-$SHORT_BRANCH_NAME-$SHA7" \
# --template "zebrad-$SHORT_BRANCH_NAME-$SHA7" \
# --health-check zebrad-tracing-filter \
# --initial-delay 30 \
# --region us-central1 \
# --size 2
# Rolls out update to existing group using the new instance template
- name: Update managed instance group
run: |
gcloud compute instance-groups managed create \
"zebrad-$SHORT_BRANCH_NAME-$SHA7" \
--template "zebrad-$SHORT_BRANCH_NAME-$SHA7" \
--health-check zebrad-tracing-filter \
--initial-delay 30 \
gcloud compute instance-groups managed rolling-action start-update \
"zebrad-$SHORT_BRANCH_NAME" \
--version template="zebrad-$SHORT_BRANCH_NAME-$SHA7" \
--region us-central1 \
--size 2