FP Fiks fleire feil der ein feilaktig ikkje ser på aktive arbeidsforhold #2009
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: Bygg og deploy Engangsstønad | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'apps/engangsstonad/**' | |
- 'packages/**' | |
- 'server/**' | |
- '.deploy/engangsstonad/**' | |
- '.deploy/naiserator.yaml' | |
- '.github/workflows/build-engangsstonad.yml' | |
- 'Dockerfile' | |
- 'docker-bake.hcl' | |
- 'pnpm-lock.yaml' | |
jobs: | |
build-app: | |
name: Build | |
permissions: | |
packages: write | |
id-token: write | |
uses: navikt/fp-gha-workflows/.github/workflows/build-docker-bake.yml@main | |
with: | |
runs-on: 'ubuntu-latest-4-cores' # default: ubuntu-latest | |
push-image: ${{ github.ref_name == 'master' }} # default: false | |
bake-target: 'engangsstonad' | |
secrets: inherit | |
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@main | |
with: | |
gar: true | |
image: ${{ needs.build-app.outputs.build-version }} | |
cluster: dev-gcp | |
image_suffix: '/engangsstonad' | |
deploy_context: '/engangsstonad' | |
secrets: inherit | |
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@main | |
with: | |
gar: true | |
image: ${{ needs.build-app.outputs.build-version }} | |
cluster: prod-gcp | |
image_suffix: '/engangsstonad' | |
deploy_context: '/engangsstonad' | |
secrets: inherit |