-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (70 loc) · 2.16 KB
/
validate-and-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
name: Validate and Deploy
on:
push:
tags:
- 'dev**'
- 'staging**'
- 'prod**'
branches:
- master
pull_request:
branches:
- master
jobs:
validate:
name: Validate code
uses: bratislava/github-actions/.github/workflows/validate-nest-prisma.yml@beta
conditions:
name: Check for cluster conditions
needs: validate
uses: bratislava/github-actions/.github/workflows/cluster-deploy-conditions-simple.yml@beta
permissions: write-all
deploy-dev:
name: Deploy to dev
if: needs.conditions.outputs.dev == 'true'
needs: conditions
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@beta
with:
directory: ./
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 }}
permissions: write-all
deploy-staging:
name: Deploy to staging
if: needs.conditions.outputs.staging == 'true'
needs: [conditions]
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: ./
cluster: tkg-innov-staging
url: https://tkg.staging.bratislava.sk
flag: --staging
debug: --debug
version: beta
secrets:
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
permissions: write-all
deploy-prod:
name: Deploy to prod
if: needs.conditions.outputs.prod == 'true'
needs: [conditions]
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli-inhouse.yml@beta
with:
directory: ./
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 }}
permissions: write-all