Scope deploys to main, gcloud branches; shorten initial delay
This commit is contained in:
parent
c901b42c75
commit
509f0763ad
|
|
@ -2,6 +2,9 @@ name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- gcloud
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PROJECT_ID: zealous-zebra
|
PROJECT_ID: zealous-zebra
|
||||||
|
|
@ -71,16 +74,11 @@ jobs:
|
||||||
|
|
||||||
# Deploy managed instance group using the new instance template
|
# Deploy managed instance group using the new instance template
|
||||||
- name: Deploy managed instance group
|
- name: Deploy managed instance group
|
||||||
# Assumes the 'zebrad-tracing-filter' healthcheck to hit
|
|
||||||
# :3000/filter exists, which requires the
|
|
||||||
# 'allow-tracing-health-check' firewall rule to allow Google
|
|
||||||
# 'spotter' IPs to hit that port be added to the network
|
|
||||||
# attached to the instance template (usually it's 'default').
|
|
||||||
run: |
|
run: |
|
||||||
gcloud compute instance-groups managed create \
|
gcloud compute instance-groups managed create \
|
||||||
"zebrad-$SHORT_BRANCH_NAME-$SHA7" \
|
"zebrad-$SHORT_BRANCH_NAME-$SHA7" \
|
||||||
--template "zebrad-$SHORT_BRANCH_NAME-$SHA7" \
|
--template "zebrad-$SHORT_BRANCH_NAME-$SHA7" \
|
||||||
--health-check zebrad-tracing-filter \
|
--health-check zebrad-tracing-filter \
|
||||||
--initial-delay 60 \
|
--initial-delay 30 \
|
||||||
--region us-central1 \
|
--region us-central1 \
|
||||||
--size 2
|
--size 2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue