Skip to content

Commit

Permalink
slår sammen deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Jan 11, 2024
1 parent 30fd6a8 commit 98db316
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,19 @@ jobs:
outputs:
image: ${{ steps.docker-build-push.outputs.image }}

deployDev:
name: Deploy to dev
needs: [build]
deploy:
name: deploy
needs: build
runs-on: ubuntu-latest
env:
IMAGE: "${{ needs.build.outputs.image }}"
strategy:
fail-fast: false
matrix:
cluster: [dev-gcp, prod-gcp]
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: deploy/dev.yml

deployProd:
name: Deploy to prod
needs: [build, deployDev]
runs-on: ubuntu-latest
env:
IMAGE: "${{ needs.build.outputs.image }}"
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: deploy/prod.yml
CLUSTER: ${{ matrix.cluster }}
RESOURCE: deploy/${{ matrix.cluster }}.yml
IMAGE: ${{ needs.build.outputs.image }}

0 comments on commit 98db316

Please sign in to comment.