-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.17 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
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
secrets:
GCS_SA_KEY: ${{ secrets.GCS_SA_KEY_DEV }}
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
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
secrets:
GCS_SA_KEY: ${{ secrets.GCS_SA_KEY_PROD }}
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