-
Notifications
You must be signed in to change notification settings - Fork 0
152 lines (141 loc) · 4.74 KB
/
deploy.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: Strapi/Next deploy pipeline
on:
push:
tags:
- 'dev**'
- 'staging**'
- 'prod**'
branches:
- master
permissions:
contents: 'read'
id-token: 'write'
issues: 'write'
jobs:
conditions:
name: Check for cluster conditions
uses: bratislava/github-actions/.github/workflows/cluster-deploy-conditions.yml@stable
deploy-dev:
name: after dev Strapi deploy Next
if: needs.conditions.outputs.dev == 'true'
needs: [conditions, deploy-dev-strapi]
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@beta
with:
directory: next/
cluster: tkg-innov-dev
url: https://tkg.dev.bratislava.sk
debug: --debug
version: beta
secrets:
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-dev-strapi:
name: dev Strapi
needs: conditions
if: needs.conditions.outputs.dev-strapi == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@beta
with:
directory: strapi/
cluster: tkg-innov-dev
url: https://tkg.dev.bratislava.sk
debug: --debug
version: beta
secrets:
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-dev-next:
name: dev Next
needs: conditions
if: needs.conditions.outputs.dev-next == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@beta
with:
directory: next/
cluster: tkg-innov-dev
url: https://tkg.dev.bratislava.sk
debug: --debug
version: beta
secrets:
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-staging:
name: after staging Strapi deploy Next
if: needs.conditions.outputs.staging == 'true'
needs: [conditions, deploy-staging-strapi]
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: next/
cluster: tkg-innov-staging
url: https://tkg.staging.bratislava.sk
flag: --staging
debug: --debug
secrets:
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-staging-strapi:
name: staging Strapi
needs: conditions
if: needs.conditions.outputs.staging-strapi == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: strapi/
cluster: tkg-innov-staging
url: https://tkg.staging.bratislava.sk
flag: --staging
debug: --debug
secrets:
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-staging-next:
name: staging Next
needs: conditions
if: needs.conditions.outputs.staging-next == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: next/
cluster: tkg-innov-staging
url: https://tkg.staging.bratislava.sk
flag: --staging
debug: --debug
secrets:
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-prod:
name: after prod Strapi deploy Next
if: needs.conditions.outputs.prod == 'true'
needs: [conditions, deploy-prod-strapi]
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: next/
cluster: tkg-innov-prod
url: https://tkg.bratislava.sk
flag: --production
secrets:
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-prod-strapi:
name: prod Strapi
needs: conditions
if: needs.conditions.outputs.prod-strapi == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: strapi/
cluster: tkg-innov-prod
url: https://tkg.bratislava.sk
flag: --production
debug: --debug
secrets:
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-prod-next:
name: prod Next
needs: conditions
if: needs.conditions.outputs.prod-next == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: next/
cluster: tkg-innov-prod
url: https://tkg.bratislava.sk
flag: --production
secrets:
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}