-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 959 Bytes
/
release.yaml
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
28
29
30
31
32
33
34
35
36
on:
push:
branches: [develop, staging, main]
jobs:
dev:
name: deploy cloudrun to dev environment
if: ${{ github.ref == 'refs/heads/develop' || github.base_ref == 'develop' }}
uses: ./.github/workflows/_deployment.yaml
permissions:
id-token: write
contents: read
with:
environment: development
ref: ${{ github.sha }}
secrets: inherit
staging:
if: ${{ github.ref == 'refs/heads/staging' || github.base_ref == 'staging' }}
uses: ./.github/workflows/_deployment.yaml
permissions:
id-token: write
contents: read
with:
environment: staging
ref: ${{ github.sha }}
secrets: inherit
prod:
if: ${{ github.ref == 'refs/heads/main' || github.base_ref == 'main' }}
uses: ./.github/workflows/_deployment.yaml
permissions:
id-token: write
contents: read
with:
environment: production
ref: ${{ github.sha }}
secrets: inherit