Skip to content

Fjern gammel workflow (#1534) #3

Fjern gammel workflow (#1534)

Fjern gammel workflow (#1534) #3

Workflow file for this run

# Full pipeline on push to main. Build, test, and deploy to dev + prod
name: Main
on:
workflow_dispatch:
push:
branches:
- 'main'
paths-ignore:
- '**.md'
- '**.MD'
- '.github/*.yaml'
- '.gitignore'
- '.prettierignore'
- '.prettierrc'
- 'CODEOWNERS'
- 'LICENSE'
- 'eslint.config.mjs'
- '.husky/**'
jobs:
build:
name: Build
if: github.ref == 'refs/heads/main' # Only deploy to prod from main branch
permissions:
contents: read
id-token: write
uses: navikt/familie-baks-gha-workflows/.github/workflows/build-yarn-app.yaml@main
with:
build-image: true
push-image: true
base-path: /barnetrygd/soknad/
secrets: inherit
deploy-dev:
name: Deploy dev
permissions:
id-token: write
needs: [ build ]
uses: navikt/familie-baks-gha-workflows/.github/workflows/deploy.yaml@main
with:
image: ${{ needs.build.outputs.image }}
cluster: dev-gcp
resource: .nais/app-dev.yaml
secrets: inherit
deploy-prod:
name: Deploy prod
permissions:
id-token: write
needs: [ build, deploy-dev ]
uses: navikt/familie-baks-gha-workflows/.github/workflows/deploy.yaml@main
with:
image: ${{ needs.build.outputs.image }}
cluster: prod-gcp
resource: .nais/app-prod.yaml
secrets: inherit