Merge pull request #448 from navikt/tiltakstype #36
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: Build, push, and deploy | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
name: Test, build and push | |
uses: ./.github/workflows/.test-and-build.yml | |
permissions: | |
contents: read | |
id-token: write | |
secrets: | |
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} | |
SLACK_VARSEL_WEBHOOK_URL: ${{ secrets.SLACK_VARSEL_WEBHOOK_URL }} | |
deploy-dev: | |
name: Deploy to NAIS dev | |
needs: build | |
uses: ./.github/workflows/.deploy-to-nais.yml | |
permissions: | |
contents: read | |
id-token: write | |
with: | |
NAIS_ENV: dev | |
IMAGE: ${{ needs.build.outputs.IMAGE }} | |
deploy-prod: | |
name: Deploy to NAIS prod | |
needs: build | |
uses: ./.github/workflows/.deploy-to-nais.yml | |
permissions: | |
contents: read | |
id-token: write | |
with: | |
NAIS_ENV: prod | |
IMAGE: ${{ needs.build.outputs.IMAGE }} |