TFP-6071 nytt endepunkt og bruk av familiehendelse #6941
This file contains hidden or 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: Bygg og deploy | |
on: | |
push: | |
branches: | |
- '**' | |
paths-ignore: | |
- '**.md' | |
- '**.MD' | |
- '.gitignore' | |
- '.editorconfig' | |
- 'LICENCE' | |
- 'CODEOWNERS' | |
jobs: | |
build-app: | |
name: Build | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
uses: navikt/fp-gha-workflows/.github/workflows/build-app-frontend-yarn.yml@d82a6fe449f56938a073da20baca50bed596a800 | |
with: | |
runs-on: 'ubuntu-latest-8-cores' | |
node-version: '22.17.1' | |
build-image: ${{ github.ref_name == 'master' }} # default: true | |
push-image: ${{ github.ref_name == 'master' }} # default: false | |
run-knip: true | |
secrets: | |
READER_TOKEN: ${{ secrets.READER_TOKEN }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
deploy-dev: | |
name: Deploy dev | |
permissions: | |
id-token: write | |
if: github.ref_name == 'master' | |
needs: build-app | |
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@d82a6fe449f56938a073da20baca50bed596a800 | |
with: | |
gar: true | |
image: ${{ needs.build-app.outputs.build-version }} | |
cluster: dev-gcp | |
deploy-prod: | |
name: Deploy prod | |
permissions: | |
id-token: write | |
if: github.ref_name == 'master' | |
needs: [build-app, deploy-dev] | |
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@d82a6fe449f56938a073da20baca50bed596a800 | |
with: | |
gar: true | |
image: ${{ needs.build-app.outputs.build-version }} | |
cluster: prod-gcp |