Skip to content

Merge branch 'master' into nytt-ferie-steg #2086

Merge branch 'master' into nytt-ferie-steg

Merge branch 'master' into nytt-ferie-steg #2086

name: Bygg og deploy Svangerskapspengesøknad
on:
workflow_dispatch:
push:
paths:
- 'apps/svangerskapspengesoknad/**'
- 'packages/**'
- 'server/**'
- '.deploy/svangerskapspengesoknad/**'
- '.deploy/naiserator.yaml'
- '.github/workflows/build-svangerskapspengesoknad.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: 'svangerskapspengesoknad'
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: '/svangerskapspengesoknad'
deploy_context: '/svangerskapspengesoknad'
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: '/svangerskapspengesoknad'
deploy_context: '/svangerskapspengesoknad'
secrets: inherit