Scope deploys to main, gcloud branches; shorten initial delay

This commit is contained in:
Deirdre Connolly 2020-06-19 02:14:10 -04:00 committed by Deirdre Connolly
parent c901b42c75
commit 509f0763ad
1 changed files with 4 additions and 6 deletions

View File

@ -2,6 +2,9 @@ name: CI
on:
push:
branches:
- main
- gcloud
env:
PROJECT_ID: zealous-zebra
@ -71,16 +74,11 @@ jobs:
# Deploy managed instance group using the new instance template
- 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: |
gcloud compute instance-groups managed create \
"zebrad-$SHORT_BRANCH_NAME-$SHA7" \
--template "zebrad-$SHORT_BRANCH_NAME-$SHA7" \
--health-check zebrad-tracing-filter \
--initial-delay 60 \
--initial-delay 30 \
--region us-central1 \
--size 2