Merge pull request #329 from navikt/dependabot/npm_and_yarn/sentry/ne… #1146
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' | |
- '**/**.md' | |
workflow_call: | |
jobs: | |
build-and-test: | |
name: Test frontend | |
uses: ./.github/workflows/test.yml | |
build-and-push: | |
name: Build and push Docker container for prod | |
uses: ./.github/workflows/build-push.yml | |
with: | |
environment: prod | |
secrets: inherit | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
packages: 'read' | |
deploy-prod: | |
name: Deploy to prod | |
needs: [build-and-test, build-and-push] | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nais/deploy/actions/deploy@v2 | |
env: | |
DRY_RUN: false | |
PRINT_PAYLOAD: true | |
CLUSTER: prod-gcp | |
RESOURCE: .nais/nais.yml | |
VAR: app_version=${{ github.sha }},image=${{ needs.build-and-push.outputs.image }} |