-
Notifications
You must be signed in to change notification settings - Fork 5
66 lines (60 loc) · 2.1 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
name: deploy dev og prod
on:
push:
branches:
- main
workflow_dispatch:
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: aktivitetsplan-dev-ekstern
NAIS_MANAGEMENT_PROJECT_ID: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
secrets:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
READER_TOKEN: ${{ secrets.READER_TOKEN }}
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: aktivitetsplan-dev-intern
NAIS_MANAGEMENT_PROJECT_ID: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
secrets:
READER_TOKEN: ${{ secrets.READER_TOKEN }}
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
prod-ekstern:
name: Deploy application to prod ekstern
needs: dev-ekstern
uses: ./.github/workflows/deploy-ekstern.yml
with:
kommando: npm run build:prod-ekstern
bucket: aktivitetsplan-prod-ekstern
NAIS_MANAGEMENT_PROJECT_ID: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
secrets:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
READER_TOKEN: ${{ secrets.READER_TOKEN }}
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: aktivitetsplan-prod-intern
NAIS_MANAGEMENT_PROJECT_ID: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
secrets:
READER_TOKEN: ${{ secrets.READER_TOKEN }}
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}