From 2a3569c18c60c94dae9ac1a167fc0f1209aa07c7 Mon Sep 17 00:00:00 2001 From: JeremiahUy Date: Thu, 17 Aug 2023 14:50:24 +0200 Subject: [PATCH] UPDATE: workflow file --- .github/workflows/default.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index c3b7672..c7ab4fe 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -56,4 +56,21 @@ jobs: env: APIKEY: ${{ secrets.NAIS_DEPLOY_KEY }} CLUSTER: ${{ matrix.cluster }} - RESOURCE: .nais/nais.yaml,.nais/topic.yaml + RESOURCE: .nais/nais.yaml + + deploy-prod: + runs-on: ubuntu-latest + needs: build + if: github.event_name == 'release' + strategy: + matrix: + cluster: ["prod-gcp"] + steps: + - name: Checkout + uses: actions/checkout@master + - name: Deploy to ${{ matrix.cluster }} + uses: nais/deploy/actions/deploy@master + env: + APIKEY: ${{ secrets.NAIS_DEPLOY_KEY }} + CLUSTER: ${{ matrix.cluster }} + RESOURCE: .nais/topic.yaml \ No newline at end of file