Skip to content

Commit

Permalink
Merge pull request #954 from navikt/nais-deploy-v2-uten-apikey
Browse files Browse the repository at this point in the history
Nøkkelfri deploy fra Github
  • Loading branch information
akgagnat authored Jan 19, 2024
2 parents 31e79b5 + 3ad208e commit 3a31e0d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/alert-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,29 @@ jobs:
preprod-deploy:
name: Deploy to preprod
runs-on: ubuntu-latest
permissions:
id-token: 'write'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to preprod
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: './.nais/bygger/alerts.yaml'
VARS: './.nais/bygger/preprod.yaml'

prod-deploy:
name: Deploy to prod
runs-on: ubuntu-latest
permissions:
id-token: 'write'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to prod
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: './.nais/bygger/alerts.yaml'
VARS: './.nais/bygger/prod.yaml'
3 changes: 2 additions & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,13 @@ jobs:
if: github.ref == 'refs/heads/master'
needs: [build-and-test, package-and-push-bygger, package-and-push-fyllut-base]
runs-on: ubuntu-latest
permissions:
id-token: 'write'
steps:
- uses: 'actions/checkout@v4'
- name: 'Deploy to PROD'
uses: 'nais/deploy/actions/deploy@v2'
env:
APIKEY: '${{ secrets.NAIS_DEPLOY_APIKEY }}'
CLUSTER: 'prod-gcp'
RESOURCE: './.nais/bygger/nais.yaml'
VARS: './.nais/bygger/prod.yaml'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/manual-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ jobs:
needs: [package-and-push-bygger]
if: ${{ !failure() && !cancelled() }}
runs-on: ubuntu-latest
permissions:
id-token: 'write'
steps:
- uses: 'actions/checkout@v4'
- name: 'Deploy to preprod'
uses: 'nais/deploy/actions/deploy@v2'
env:
APIKEY: '${{ secrets.NAIS_DEPLOY_APIKEY }}'
CLUSTER: 'dev-gcp'
RESOURCE: './.nais/bygger/nais.yaml'
VARS: './.nais/bygger/${{ github.event.inputs.environment }}.yaml'
Expand Down Expand Up @@ -112,12 +113,13 @@ jobs:
needs: [package-and-push-fyllut]
if: ${{ !failure() && !cancelled() }}
runs-on: ubuntu-latest
permissions:
id-token: 'write'
steps:
- uses: 'actions/checkout@v4'
- name: 'Deploy to preprod'
uses: 'nais/deploy/actions/deploy@v2'
env:
APIKEY: '${{ secrets.NAIS_DEPLOY_APIKEY }}'
CLUSTER: 'dev-gcp'
RESOURCE: './.nais/fyllut/config.yaml'
VARS: './.nais/fyllut/${{ github.event.inputs.environment }}.yaml'
Expand Down

0 comments on commit 3a31e0d

Please sign in to comment.