From d808eff968b5ee7dc75b90e0a865398dd689693f Mon Sep 17 00:00:00 2001 From: Michael Gundersen <21148282+theagilepadawan@users.noreply.github.com> Date: Fri, 7 Jan 2022 09:43:02 +0100 Subject: [PATCH] Legger tilbake deploy til gcp --- .github/workflows/deploy.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a76960f7..9a9234f5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -58,6 +58,44 @@ jobs: RESOURCE: nais/naiserator-sbs.yaml VARS: nais/vars-dev-sbs.yaml + deploy-dev-gcp: + name: Deploy to dev-gcp + needs: test-build-and-push + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Lag tag for image + run: echo "TAG=$(git log -1 --pretty='%ad_%h' --date=format:'%Y%m%d%H%M%S')" >> $GITHUB_ENV + - name: Lag full image referanse + run: echo "IMAGE=$IMAGE_BASE:$TAG" >> $GITHUB_ENV + - name: Deploy with nais + uses: nais/deploy/actions/deploy@master + env: + APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} + CLUSTER: dev-gcp + RESOURCE: nais/naiserator-gcp.yaml + VARS: nais/vars-dev-gcp.yaml + DRY_RUN: false + + deploy-prod-gcp: + name: Deploy to prod-gcp + needs: deploy-dev-gcp + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Lag tag for image + run: echo "TAG=$(git log -1 --pretty='%ad_%h' --date=format:'%Y%m%d%H%M%S')" >> $GITHUB_ENV + - name: Lag full image referanse + run: echo "IMAGE=$IMAGE_BASE:$TAG" >> $GITHUB_ENV + - name: Deploy with nais + uses: nais/deploy/actions/deploy@master + env: + APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} + CLUSTER: prod-gcp + RESOURCE: nais/naiserator-gcp.yaml + VARS: nais/vars-p-gcp.yaml + DRY_RUN: true + deploy-prod-sbs-paw: name: Deploy to Prod SBS needs: deploy-dev-sbs