Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
Legger tilbake deploy til gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
theagilepadawan committed Jan 7, 2022
1 parent f68060a commit d808eff
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d808eff

Please sign in to comment.