-
Notifications
You must be signed in to change notification settings - Fork 3
157 lines (147 loc) · 5.23 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
153
154
155
156
157
name: Strapi/Next deploy pipeline
on:
push:
tags:
- 'dev**'
- 'staging**'
- 'prod**'
branches:
- master
jobs:
conditions:
name: Check for cluster conditions
uses: bratislava/github-actions/.github/workflows/cluster-deploy-conditions-inhouse.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-inhouse.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 }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
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-inhouse.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 }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
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-inhouse.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 }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
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-inhouse.yml@stable
with:
directory: next/
cluster: tkg-innov-staging
url: https://tkg.staging.bratislava.sk
debug: --debug
flag: --staging
secrets:
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
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-inhouse.yml@stable
with:
directory: strapi/
cluster: tkg-innov-staging
url: https://tkg.staging.bratislava.sk
debug: --debug
flag: --staging
secrets:
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
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-inhouse.yml@stable
with:
directory: next/
cluster: tkg-innov-staging
url: https://tkg.staging.bratislava.sk
debug: --debug
flag: --staging
secrets:
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
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-inhouse.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 }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
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-inhouse.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 }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
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-inhouse.yml@stable
with:
directory: next/
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 }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}