Ny maal desing (#1315) #401
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |