Skip to content

Commit

Permalink
GAR push og pull
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsladek committed Sep 10, 2023
1 parent 7bf3258 commit 4f93800
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
permissions:
contents: read
packages: write
id-token: write
uses: navikt/fp-gha-workflows/.github/workflows/build-app-postgres.yml@main
with:
postgres-user: fpabakus_unit
Expand Down Expand Up @@ -95,21 +96,27 @@ jobs:

deploy-dev:
name: Deploy dev
permissions:
id-token: write
if: github.ref_name == 'master'
needs: [build-app, fpsak-tester, verdikjede-tester]
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
image: ghcr.io/${{ github.repository }}:${{ needs.build-app.outputs.build-version }}
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: dev-fss
secrets: inherit

deploy-prod:
name: Deploy prod
permissions:
id-token: write
if: github.ref_name == 'master'
needs: [build-app, fpsak-tester, verdikjede-tester, deploy-dev]
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
image: ghcr.io/${{ github.repository }}:${{ needs.build-app.outputs.build-version }}
gar: true
image: ${{ needs.build-app.outputs.build-version }}
cluster: prod-fss
secrets: inherit

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy-manuelt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ on:
jobs:
deploy:
name: Deploy dev
permissions:
id-token: write
uses: navikt/fp-gha-workflows/.github/workflows/deploy.yml@main
with:
image: ghcr.io/${{ github.repository }}:${{ inputs.image }}
gar: true
image: ${{ inputs.image }}
cluster: ${{ inputs.environment }}-fss
secrets: inherit

0 comments on commit 4f93800

Please sign in to comment.