generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 4
80 lines (73 loc) · 1.8 KB
/
merge.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
name: Merge
on:
workflow_run:
workflows: [PR Closed]
types: [completed]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploys-test:
name: Deploys (test)
uses: ./.github/workflows/.deploy.yml
secrets: inherit
with:
tag: test
target: latest
values: values.yaml
license: c28f0c
vault_role: nonprod
zone: test
# integration-e2e:
# name: Integration and E2E Tests
# needs: [deploys-test]
# uses: ./.github/workflows/.tests.yml
# with:
# target: test
promote-images-test:
name: Promote Images - Test
#needs: [deploys-test, integration-e2e]
needs: [deploys-test]
runs-on: ubuntu-22.04
permissions:
packages: write
strategy:
matrix:
package: [dops, vehicles, frontend]
timeout-minutes: 2
steps:
- uses: shrink/actions-docker-registry-tag@v3
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.package }}
target: latest
tags: test
deploys-prod:
name: Deploys (prod)
needs: [promote-images-test]
uses: ./.github/workflows/.deploy.yml
secrets: inherit
with:
tag: prod
target: test
values: values.yaml
license: c28f0c
vault_role: prod
zone: prod
promote-images-prod:
name: Promote Images - Prod
needs: [deploys-prod]
runs-on: ubuntu-22.04
permissions:
packages: write
strategy:
matrix:
package: [dops, vehicles, frontend]
timeout-minutes: 2
steps:
- uses: shrink/actions-docker-registry-tag@v3
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.package }}
target: test
tags: prod #Promote images AFTER successful deploy