Skip to content

24.032.140808

24.032.140808 #123

Workflow file for this run

name: Deploy til prod-gcp
on:
release:
types: [published]
jobs:
deploy-prod:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: nais/login@v0
name: get image registry
id: nais-login
with:
team: teamdigihot
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
- name: get image
env:
VERSION_TAG: ${{ github.event.release.tag_name }}
REGISTRY: ${{ steps.nais-login.outputs.registry }}
APP: ${{ github.event.repository.name }}
run: |
IMAGE=$REGISTRY/$APP:$VERSION_TAG
echo "IMAGE=${IMAGE}" >> $GITHUB_ENV
echo $IMAGE
- uses: nais/deploy/actions/deploy@v2
name: Deploy til prod-gcp
env:
CLUSTER: prod-gcp
RESOURCE: .nais/prod.yaml
VAR: commit=${{ github.sha }}
- uses: navikt/digihot-deploy/actions/post-production@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}