Merge pull request #388 from navikt/dependabot/gradle/test-4983abe8c7 #402
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: etterlatte-proxy | |
on: | |
workflow_dispatch: # Allow manually triggered workflow run | |
inputs: | |
deploy-prod: | |
description: 'Deploy til produksjon' | |
required: false | |
default: 'false' | |
push: | |
branches: | |
- main | |
paths: | |
- apps/etterlatte-proxy/** | |
- gradle/libs.versions.toml | |
pull_request: | |
branches: | |
- main | |
paths: | |
- apps/etterlatte-proxy/** | |
- gradle/libs.versions.toml | |
jobs: | |
test: | |
if: github.event_name == 'pull_request' | |
uses: ./.github/workflows/.test.yaml | |
secrets: inherit | |
build: | |
if: github.event_name != 'pull_request' | |
uses: ./.github/workflows/.build.yaml | |
secrets: inherit | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
deploy: | |
if: github.event_name != 'pull_request' | |
needs: build | |
uses: ./.github/workflows/.deploy.yaml | |
with: | |
image: ${{ needs.build.outputs.image }} | |
cluster: 'fss' | |
secrets: inherit | |
permissions: | |
contents: 'read' | |
id-token: 'write' |