Skip to content

NAV til Nav (#784) #677

NAV til Nav (#784)

NAV til Nav (#784) #677

Workflow file for this run

name: Build and deploy
on:
push:
branches:
- '**'
paths-ignore:
- '**.md'
- '**.MD'
- '.gitignore'
- 'LICENSE'
- 'CODEOWNERS'
- 'dokumentasjon/**'
- 'lokalutvikling/**'
jobs:
build-app:
name: Build
permissions:
contents: read
packages: write
id-token: write
uses: navikt/fp-gha-workflows/.github/workflows/build-app-no-db.yml@main
with:
build-image: ${{ github.ref_name == 'master' }} # default: true
push-image: ${{ github.ref_name == 'master' }} # default: false
secrets: inherit
verdikjede:
name: Verdikjedetester
permissions:
contents: read
id-token: write
if: github.ref_name == 'master'
needs: build-app
uses: navikt/fp-autotest/.github/workflows/autotest.yml@master
with:
build-version: ${{ needs.build-app.outputs.build-version }}
test-suite: verdikjede
secrets: inherit
notify:
name: Notify
if: github.ref_name == 'master' && (success() || failure()) && !contains(needs.*.result, 'skipped')
needs: [build-app, verdikjede]
uses: navikt/fp-autotest/.github/workflows/report-and-notify.yml@master
with:
verdikjede: ${{ needs.verdikjede.outputs.resultat }}
build-version: ${{ needs.build-app.outputs.build-version }}
secrets: inherit
deploy-dev-fss:
name: Deploy dev-fss
permissions:
id-token: write
if: github.ref_name == 'master'
needs: [build-app, verdikjede]
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: dev-fss
secrets: inherit
deploy-dev-gcp:
name: Deploy dev-gcp
permissions:
id-token: write
if: github.ref_name == 'master'
needs: [build-app, verdikjede]
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: dev-gcp
secrets: inherit
deploy-prod-fss:
name: Deploy prod-fss
permissions:
id-token: write
if: github.ref_name == 'master'
needs: [build-app, verdikjede, deploy-dev-fss]
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: prod-fss
secrets: inherit
deploy-prod-gcp:
name: Deploy prod-gcp
permissions:
id-token: write
if: github.ref_name == 'master'
needs: [build-app, verdikjede, deploy-dev-gcp]
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: prod-gcp
secrets: inherit