Skip to content

Deploy til prod

Deploy til prod #139

Workflow file for this run

name: Deploy til prod
on: [workflow_dispatch]
jobs:
Build:
runs-on: ubuntu-latest
permissions:
id-token: write # nais docker-build-push
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
cache: maven
- name: Bygge JAR
run: mvn clean package -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.READER_TOKEN }}
- uses: nais/docker-build-push@v0
id: docker-push
with:
team: k9saksbehandling
push_image: true
pull: true
dockerfile: Dockerfile
docker_context: .
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
- name: Deploy til prod
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-fss
RESOURCE: nais/prod-fss.yml
IMAGE: ${{ steps.docker-push.outputs.image }}