Skip to content

Commit

Permalink
Klarer ikke å deploye pga manglende permission. Fjerner i samme sleng…
Browse files Browse the repository at this point in the history
…en bruk av apikey
  • Loading branch information
charliemidtlyng committed Jan 17, 2024
1 parent 4741f51 commit 3f4f2bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ on:
env:
IMAGE: ghcr.io/navikt/familie-klage:${{ github.sha }}

permissions:
contents: "read"
id-token: "write"
packages: "write"

jobs:
build:
name: Build, push and deploy to dev-gcp
runs-on: ubuntu-latest
permissions:
packages: "write"
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -41,6 +44,5 @@ jobs:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .deploy/preprod.yaml
9 changes: 5 additions & 4 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ on:
env:
IMAGE: ghcr.io/navikt/familie-klage:${{ github.sha }}

permissions:
contents: "read"
id-token: "write"
packages: "write"

jobs:
build:
name: Build, push and deploy to dev-gcp and prod-gcp
runs-on: ubuntu-latest
permissions:
packages: "write"
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -55,13 +58,11 @@ jobs:
- name: Deploy til dev-gcp
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .deploy/preprod.yaml
- name: Deploy til prod-gcp
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: .deploy/prod.yaml
- name: Post deploy failures to Slack
Expand Down

0 comments on commit 3f4f2bb

Please sign in to comment.