Deploy to prod version 2025-02-24--16-02-47---29d9eae0092d7b9ef45b1c9174592fbc7278de57 #11
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: Deploy to production | |
run-name: Deploy to prod version ${{ github.event.inputs.version }} | |
permissions: | |
deployments: write | |
packages: read | |
contents: read | |
id-token: write | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'New version to deploy' | |
required: true | |
env: | |
IMAGE: europe-north1-docker.pkg.dev/nais-management-233d/eessibasis/eux-web-app | |
READER_TOKEN: ${{ secrets.READER_TOKEN }} | |
jobs: | |
deploy-prod: | |
name: 'Deploy to prod' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 'Calling nais deploy action for prod' | |
uses: nais/deploy/actions/deploy@v2 | |
env: | |
CLUSTER: prod-gcp | |
RESOURCE: .nais/nais.yaml | |
VAR: "image=${{ env.IMAGE }}:${{ github.event.inputs.version }}" | |
VARS: .nais/prod.yaml | |
PRINT_PAYLOAD: true |