Sette opp router med nytt steg for å tilpasse planen #1414
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 Foreldrepengerplanlegger | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'apps/planlegger/**' | |
- 'packages/**' | |
- 'server-uinnlogget/**' | |
- '.deploy/planlegger/**' | |
- '.deploy/naiserator.yaml' | |
- '.github/workflows/build-planlegger.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: 'planlegger' | |
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: '/planlegger' | |
deploy_context: '/planlegger' | |
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: '/planlegger' | |
deploy_context: '/planlegger' | |
secrets: inherit |