Skip to content

Commit

Permalink
Merge pull request #1335 from navikt/ORG-1769_nais_deploy_v2
Browse files Browse the repository at this point in the history
ORG-1769: Use nais/deploy/actions/deploy@v2
  • Loading branch information
oyvinyg authored Jan 5, 2024
2 parents 48c34c7 + d93a8a0 commit b5c87f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/deploy-alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ jobs:
uses: actions/checkout@v4

- name: Deploy to dev
uses: nais/deploy/actions/deploy@v1
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: apps/backend/nais/alerts-backend-dev-gcp.yaml

- name: Deploy to prod
uses: nais/deploy/actions/deploy@v1
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: apps/backend/nais/alerts-backend-prod-gcp.yaml

Expand All @@ -41,15 +39,13 @@ jobs:
uses: actions/checkout@v4

- name: Deploy to dev
uses: nais/deploy/actions/deploy@v1
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: apps/frackend/nais/alerts-frackend-dev-gcp.yaml

- name: Deploy to prod
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: apps/frackend/nais/alerts-frackend-prod-gcp.yaml
6 changes: 2 additions & 4 deletions .github/workflows/deploy-backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: apps/backend/nais/backend-dev-gcp.yaml
VAR: image=${{needs.build.outputs.image}}
Expand All @@ -74,9 +73,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: apps/backend/nais/backend-prod-gcp.yaml
VAR: image=${{ needs.build.outputs.image }}
6 changes: 2 additions & 4 deletions .github/workflows/deploy-frackend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: apps/frackend/nais/frackend-dev.yaml
VAR: image=${{needs.build-app-docker.outputs.image}}
Expand All @@ -83,9 +82,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_ORG_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: apps/frackend/nais/frackend-prod.yaml
VAR: image=${{needs.build-app-docker.outputs.image}}

0 comments on commit b5c87f1

Please sign in to comment.