From 0117557922194b722fdef77baebd3ce6e6d2ef94 Mon Sep 17 00:00:00 2001 From: Hans Petter Simonsen Date: Wed, 31 Jul 2024 20:47:59 +0200 Subject: [PATCH] Deploy til prod! --- .github/workflows/deploy-gcp.yml | 48 ++++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/deploy-gcp.yml b/.github/workflows/deploy-gcp.yml index b788901a2..fe3f14fb0 100644 --- a/.github/workflows/deploy-gcp.yml +++ b/.github/workflows/deploy-gcp.yml @@ -69,27 +69,27 @@ jobs: RESOURCE: nais/nais-dev-gcp.yaml VAR: version=${{ env.IMAGE_TAG }} -# deploy-prod: -# name: Deploy application to prod -# needs: deploy-dev -# runs-on: ubuntu-latest -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# - name: Deploy application -# uses: nais/deploy/actions/deploy@v2 -# env: -# APIKEY: ${{ secrets.DAB_NAIS_DEPLOY_APIKEY }} -# CLUSTER: prod-gcp -# RESOURCE: nais/nais-prod-gcp.yaml -# VAR: version=${{ env.IMAGE_TAG }} -# - name: Slack Notification (deploy failure) -# if: failure() -# uses: rtCamp/action-slack-notify@v2 -# env: -# SLACK_COLOR: danger -# SLACK_USERNAME: Github Actions -# SLACK_ICON: https://github.com/github.png?size=48 -# SLACK_TITLE: 'Veilarbaktivitet: deploy til prod feilet' -# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} -# SLACK_MESSAGE: 'Commit-message til feilende deploy: ${{ github.event.head_commit.message }}' + deploy-prod: + name: Deploy application to prod + needs: deploy-dev + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Deploy application + uses: nais/deploy/actions/deploy@v2 + env: + APIKEY: ${{ secrets.DAB_NAIS_DEPLOY_APIKEY }} + CLUSTER: prod-gcp + RESOURCE: nais/nais-prod-gcp.yaml + VAR: version=${{ env.IMAGE_TAG }} + - name: Slack Notification (deploy failure) + if: failure() + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_COLOR: danger + SLACK_USERNAME: Github Actions + SLACK_ICON: https://github.com/github.png?size=48 + SLACK_TITLE: 'Veilarbaktivitet: deploy til prod feilet' + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_MESSAGE: 'Commit-message til feilende deploy: ${{ github.event.head_commit.message }}'