Skip to content

release

release #4

Workflow file for this run

name: release
on:
workflow_dispatch:
inputs:
cluster:
description: Cluster
required: true
default: dev-gcp
type: choice
options:
- dev-gcp
- prod-gcp
push:
branches: [ main ]
paths-ignore:
- '.github/**'
jobs:
gradle:

Check failure on line 20 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 20, Col: 3): Error calling workflow 'navikt/aap-workflows/.github/workflows/gradle-build.yml@main'. The nested job 'build' is requesting 'contents: write', but is only allowed 'contents: read'.
## push til main eller etter branch (e.g. dependabot) er merget
if: github.event.pull_request.merged || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
permissions:
contents: read
actions: read
checks: write
id-token: write
uses: navikt/aap-workflows/.github/workflows/gradle-build.yml@main
secrets: inherit
dev:
## push til main eller etter branch (e.g. dependabot) er merget
if: github.event.pull_request.merged || github.event_name == 'push' || github.event.inputs.cluster == 'dev-gcp'
permissions:
contents: read
id-token: write
needs: gradle
uses: navikt/aap-workflows/.github/workflows/deploy.yml@main
secrets: inherit
with:
cluster: dev-gcp
manifest: .nais/app-dev.yml
prod:
if: github.event.pull_request.merged || github.event_name == 'push' || github.event.inputs.cluster == 'prod-gcp'
permissions:
contents: read
id-token: write
needs: gradle
uses: navikt/aap-workflows/.github/workflows/deploy.yml@main
secrets: inherit
with:
cluster: prod-gcp
manifest: .nais/app-prod.yml