Update existing managed instance groups on deploy
This commit is contained in:
parent
509f0763ad
commit
2f87a9a9f6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue