-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (24 loc) · 793 Bytes
/
deploy.yml
File metadata and controls
27 lines (24 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Deploy Platform
on:
push:
branches: [main]
release:
types: [published]
jobs:
build_image:
uses: ./.github/workflows/deploy-build-image.yml
with:
environment_name: ${{ github.event_name == 'release' && 'prod' || 'dev' }}
project_id: ${{ github.event_name == 'release' && 'is-it-down-prod' || 'is-it-down-dev' }}
region: us-central1
image_tag: ${{ github.sha }}
secrets: inherit
terraform_apply:
needs: build_image
uses: ./.github/workflows/deploy-terraform-apply.yml
with:
environment_name: ${{ github.event_name == 'release' && 'prod' || 'dev' }}
workspace: ${{ github.event_name == 'release' && 'prod' || 'dev' }}
image_tag: ${{ github.sha }}
terraform_dir: infra/terraform
secrets: inherit