-
Notifications
You must be signed in to change notification settings - Fork 2
109 lines (96 loc) · 2.21 KB
/
release.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: release
on:
release:
types: [released]
push:
jobs:
# Promote and Deploy to prod-test
promote-prod-test-api:
uses: ./.github/workflows/promote.yml
with:
environment: prod-test
module: api
secrets: inherit
promote-prod-test-worker:
uses: ./.github/workflows/promote.yml
with:
environment: prod-test
module: worker
secrets: inherit
deploy-prod-test-api:
needs: promote-prod-test-api
permissions:
contents: read
id-token: write
uses: ./.github/workflows/deploy.yml
with:
environment: prod-test
module: api
secrets: inherit
# deploy-prod-test-worker:
# needs: promote-prod-test-worker
# uses: ./.github/workflows/deploy.yml
# with:
# environment: prod-test
# module: worker
# secrets: inherit
# Promote and Deploy to prod
# promote-prod-api:
# uses: ./.github/workflows/promote.yml
# with:
# environment: prod
# module: api
# secrets: inherit
# promote-prod-worker:
# uses: ./.github/workflows/promote.yml
# with:
# environment: prod
# module: worker
# secrets: inherit
# deploy-prod-api:
# needs: promote-prod-api
# uses: ./.github/workflows/deploy.yml
# with:
# environment: prod
# module: api
# secrets: inherit
# deploy-prod-worker:
# needs: promote-prod-worker
# uses: ./.github/workflows/deploy.yml
# with:
# environment: prod
# module: worker
# secrets: inherit
# Promote and Deploy to sandbox
promote-sbx-api:
uses: ./.github/workflows/promote.yml
with:
environment: sbx
module: api
secrets: inherit
promote-sbx-worker:
uses: ./.github/workflows/promote.yml
with:
environment: sbx
module: worker
secrets: inherit
deploy-sbx-api:
needs: promote-sbx-api
uses: ./.github/workflows/deploy.yml
permissions:
contents: read
id-token: write
with:
environment: sbx
module: api
secrets: inherit
deploy-sbx-worker:
needs: promote-sbx-worker
uses: ./.github/workflows/deploy.yml
permissions:
contents: read
id-token: write
with:
environment: sbx
module: worker
secrets: inherit