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

Commit

Permalink
r fjerner jobbene for gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Jan 11, 2022
1 parent ca27170 commit 7bc5fd1
Showing 1 changed file with 3 additions and 38 deletions.
41 changes: 3 additions & 38 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
headless: true
start: npm run start:cypress
wait-on: http://localhost:3001

test-build-and-push:
name: Test, build and push
needs: cypress-run
Expand All @@ -40,6 +41,7 @@ jobs:
echo ${GITHUB_TOKEN} | docker login ghcr.io -u ${GITHUB_REPOSITORY} --password-stdin
docker build --tag ${IMAGE} .
docker push ${IMAGE}
deploy-dev-sbs:
name: Deploy to dev-sbs
needs: test-build-and-push
Expand All @@ -58,44 +60,6 @@ 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: true

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 All @@ -114,6 +78,7 @@ jobs:
RESOURCE: nais/naiserator-sbs.yaml
VARS: nais/vars-p-sbs-paw.yaml
DRY_RUN: false

release:
name: Tag and release
needs: deploy-prod-sbs-paw
Expand Down

0 comments on commit 7bc5fd1

Please sign in to comment.