Skip to content

Commit

Permalink
Merge pull request #1516 from navikt/tc-555-upgrade-deploy-action
Browse files Browse the repository at this point in the history
nøkkelfri deploy
  • Loading branch information
JulieHillRoa authored Feb 20, 2024
2 parents 21f7e71 + 8fd058f commit 0311800
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy-feature-branch-q1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
permissions:
packages: write
contents: write
id-token: write
jobs:
build-and-push:
name: Build and push
Expand Down Expand Up @@ -49,7 +50,6 @@ jobs:
- name: Deploy application
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-fss
RESOURCE: .nais/application/application-config-dev.yaml
VAR: image=${{ needs.build-and-push.outputs.image }}
5 changes: 3 additions & 2 deletions .github/workflows/deploy-unleash-api-token.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- '.nais/application/unleash-apitoken-dev.yaml'
- '.nais/application/unleash-apitoken-prod.yaml'

permissions:
id-token: write

jobs:
deploy-dev:
name: Deploy unleash-apitoken to dev
Expand All @@ -20,7 +23,6 @@ jobs:
- name: Deploy unleash-apitoken
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-fss
RESOURCE: .nais/application/unleash-apitoken-dev.yaml
PRINT_PAYLOAD: true
Expand All @@ -36,7 +38,6 @@ jobs:
uses: nais/deploy/actions/deploy@v2
if: github.ref == 'refs/heads/master'
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-fss
RESOURCE: .nais/application/unleash-apitoken-prod.yaml
PRINT_PAYLOAD: true
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
permissions:
packages: write
contents: write
id-token: write
jobs:
test:
name: Run tests
Expand Down Expand Up @@ -70,7 +71,6 @@ jobs:
- name: Deploy application
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-fss
RESOURCE: .nais/application/application-config-dev.yaml
VAR: image=${{ needs.build-and-push.outputs.image }}
Expand All @@ -87,7 +87,6 @@ jobs:
- name: Deploy application
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-fss
RESOURCE: .nais/application/application-config-prod.yaml
VAR: image=${{ needs.build-and-push.outputs.image }}
Expand Down

0 comments on commit 0311800

Please sign in to comment.