Skip to content

Merge pull request #352 from navikt/dependabot/gradle/test-0e06bfa7b6 #377

Merge pull request #352 from navikt/dependabot/gradle/test-0e06bfa7b6

Merge pull request #352 from navikt/dependabot/gradle/test-0e06bfa7b6 #377

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'