Skip to content

Commit

Permalink
Merge pull request #510 from navikt/tc-555-upgrade-deployaction-nokke…
Browse files Browse the repository at this point in the history
…lfri-deploy

TC-555 nokkelfri deploy
  • Loading branch information
JulieHillRoa authored Feb 21, 2024
2 parents db325e6 + e2957c4 commit 575e172
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-push-deploy-dev.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:
build-and-push:
name: Build and push
Expand Down Expand Up @@ -46,7 +47,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 }}
2 changes: 1 addition & 1 deletion .github/workflows/deploy-alerts-to-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
workflow_dispatch:
permissions:
packages: write
id-token: write

jobs:
deploy-alerts:
Expand All @@ -22,6 +23,5 @@ jobs:
- name: Deploy to prod-fss
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY_OBO }}
CLUSTER: prod-fss
RESOURCE: .nais/alerts/alerts-config-prod.yaml
6 changes: 4 additions & 2 deletions .github/workflows/deploy-unleash-apitoken.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,23 @@ on:
jobs:
deploy-dev:
name: Deploy unleash-apitoken to dev
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- 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

deploy-prod:
name: Deploy unleash-apitoken to prod
permissions:
id-token: write
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
Expand All @@ -35,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
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 @@ -67,7 +68,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.test-build-and-push.outputs.image }}
Expand All @@ -91,7 +91,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.test-build-and-push.outputs.image }}
Expand Down

0 comments on commit 575e172

Please sign in to comment.