Skip to content

Commit

Permalink
Merge pull request #137 from navikt/dev
Browse files Browse the repository at this point in the history
Prodsette: oppgradering av deployaction og nøkkelfri deploy
  • Loading branch information
JulieHillRoa authored Feb 20, 2024
2 parents c2129fa + c688347 commit a8e8d06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-alerts-to-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
permissions:
packages: write
contents: write
id-token: write
jobs:
deploy-alerts:
name: Deploy alerts to prod-fss
Expand All @@ -20,8 +21,7 @@ jobs:
uses: actions/checkout@v4

- name: Deploy to prod-fss
uses: nais/deploy/actions/deploy@v1
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: 2 additions & 4 deletions .github/workflows/deploy-til-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
permissions:
packages: write
contents: write
id-token: write

jobs:
test:
Expand All @@ -32,8 +33,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
image: ${{ steps.docker-build-push.outputs.image }}
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,9 +63,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy application
uses: nais/deploy/actions/deploy@v1
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 }}
9 changes: 3 additions & 6 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 All @@ -31,8 +32,6 @@ jobs:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/master'
outputs:
image: ${{ steps.docker-build-push.outputs.image }}
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -65,9 +64,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy application
uses: nais/deploy/actions/deploy@v1
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 @@ -82,9 +80,8 @@ jobs:
uses: actions/checkout@v4

- name: Deploy application
uses: nais/deploy/actions/deploy@v1
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 a8e8d06

Please sign in to comment.