Skip to content

Commit

Permalink
Konfig for å deploye utan å bruke API-nøkkel (#166)
Browse files Browse the repository at this point in the history
* Konfig for å deploye utan å bruke API-nøkkel

* Også for prod

* Fordel å hugse å oppdatere versjon overalt
  • Loading branch information
madsop-nav authored Dec 19, 2023
1 parent e70c449 commit 1b32277
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/.deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v1
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-${{ inputs.cluster }}
RESOURCE: apps/${{ github.workflow }}/.nais/dev.yaml
VAR: image=${{ inputs.image }}
Expand All @@ -38,10 +37,9 @@ jobs:
id: check_files
with:
files: "apps/${{ github.workflow }}/.nais/prod.yaml"
- uses: nais/deploy/actions/deploy@v1
- uses: nais/deploy/actions/deploy@v2
if: steps.check_files.outputs.files_exists == 'true'
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-${{ inputs.cluster }}
RESOURCE: apps/${{ github.workflow }}/.nais/prod.yaml
VAR: image=${{ inputs.image }}
5 changes: 4 additions & 1 deletion .github/workflows/app-etterlatte-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ jobs:
with:
image: ${{ needs.build.outputs.image }}
cluster: 'fss'
secrets: inherit
secrets: inherit
permissions:
contents: 'read'
id-token: 'write'
5 changes: 4 additions & 1 deletion .github/workflows/app-ey-pdfgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ jobs:
with:
image: ${{ needs.build.outputs.image }}
cluster: 'gcp'
secrets: inherit
secrets: inherit
permissions:
contents: 'read'
id-token: 'write'
5 changes: 4 additions & 1 deletion .github/workflows/etterlatte-notifikasjoner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,7 @@ jobs:
with:
image: ${{ needs.build.outputs.image }}
cluster: 'gcp'
secrets: inherit
secrets: inherit
permissions:
contents: 'read'
id-token: 'write'
3 changes: 3 additions & 0 deletions .github/workflows/ey-slackbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ jobs:
image: ${{ needs.build.outputs.image }}
cluster: 'gcp'
secrets: inherit
permissions:
contents: 'read'
id-token: 'write'

0 comments on commit 1b32277

Please sign in to comment.