-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (55 loc) · 1.83 KB
/
deploy-main.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
name: deploy dev og prod
on:
push:
branches:
- main
permissions:
contents: 'read'
id-token: 'write'
packages: 'write'
concurrency:
group: deploy
cancel-in-progress: true
jobs:
dev-ekstern:
name: Deploy to dev extern
uses: ./.github/workflows/deploy-ekstern.yml
with:
kommando: npm run build:dev-ekstern
bucket: arbeidsrettet-dialog-dev-ekstern
NAIS_MANAGEMENT_PROJECT_ID: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
secrets:
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
dev-intern:
name: Deploy application to dev intern
uses: ./.github/workflows/deploy-intern.yml
with:
kommando: npm run build:dev-intern
bucket: arbeidsrettet-dialog-dev-intern
NAIS_MANAGEMENT_PROJECT_ID: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
secrets:
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
prod-ekstern:
name: Deploy application to prod ekstern
needs:
- dev-ekstern
- dev-intern
uses: ./.github/workflows/deploy-ekstern.yml
with:
kommando: npm run build:prod-ekstern
bucket: arbeidsrettet-dialog-prod-ekstern
NAIS_MANAGEMENT_PROJECT_ID: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
secrets:
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
prod-intern:
name: Deploy application to prod intern
needs: dev-intern
uses: ./.github/workflows/deploy-intern.yml
with:
kommando: npm run build:prod-intern
bucket: arbeidsrettet-dialog-prod-intern
NAIS_MANAGEMENT_PROJECT_ID: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
secrets:
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}