Bytter til Aksel-komponent FileUpload (#1537) #5
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
# 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 |