Skip to content

Merge pull request #363 from navikt/dependabot/gradle/backend-39212ea2fa #383

Merge pull request #363 from navikt/dependabot/gradle/backend-39212ea2fa

Merge pull request #363 from navikt/dependabot/gradle/backend-39212ea2fa #383

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'