Skip to content

Merge pull request #1867 from navikt/dependabot/gradle/com.networknt-… #312

Merge pull request #1867 from navikt/dependabot/gradle/com.networknt-…

Merge pull request #1867 from navikt/dependabot/gradle/com.networknt-… #312

Workflow file for this run

on:
push:
branches:
- master
paths:
- '.github/workflows/datapakker.yml'
- '.github/workflows/reusable-deploy.yml'
- '.github/actions/build-and-test/**'
- '.github/actions/setup-java/**'
- '.github/actions/deploy/**'
- '.github/actions/push-image/**'
- 'datapakker/**'
- 'common/**'
- 'gradle/**'
- 'build.gradle.kts'
permissions: {}
jobs:
build-test-push-image:
name: Build and push Docker container
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Build and test
uses: ./.github/actions/build-and-test
with:
gradle-arguments: :datapakker:soknad:build :datapakker:fritekstAvslag:build
- name: Push image soknad
uses: ./.github/actions/push-image
with:
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
tag: ${{ github.sha }}
dockerfile: ./datapakker/soknad/Dockerfile
image_suffix: 'datapakker-soknad-job'
- name: Push image fritekstAvslag
uses: ./.github/actions/push-image
with:
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
tag: ${{ github.sha }}
dockerfile: ./datapakker/fritekstAvslag/Dockerfile
image_suffix: 'datapakker-fritekstavslag-job'
deploy_to_dev_soknad:
name: Deploy to dev soknad
permissions:
contents: read
id-token: write
uses: navikt/su-se-bakover/.github/workflows/reusable-deploy.yml@master
needs: build-test-push-image
with:
var: image=europe-north1-docker.pkg.dev/nais-management-233d/supstonad/su-se-bakover-datapakker-soknad-job:${{ github.sha }}
cluster: dev-fss
resource: datapakker/soknad/.nais/dev.yaml
deploy_to_dev_fritekstAvslag:
name: Deploy to dev fritekstAvslag
permissions:
contents: read
id-token: write
uses: navikt/su-se-bakover/.github/workflows/reusable-deploy.yml@master
needs: build-test-push-image
with:
var: image=europe-north1-docker.pkg.dev/nais-management-233d/supstonad/su-se-bakover-datapakker-fritekstavslag-job:${{ github.sha }}
cluster: dev-fss
resource: datapakker/fritekstAvslag/.nais/dev.yaml
deploy_to_prod_soknad:
name: Deploy to prod
permissions:
contents: read
id-token: write
uses: navikt/su-se-bakover/.github/workflows/reusable-deploy.yml@master
needs: build-test-push-image
with:
var: image=europe-north1-docker.pkg.dev/nais-management-233d/supstonad/su-se-bakover-datapakker-soknad-job:${{ github.sha }}
cluster: prod-fss
resource: datapakker/soknad/.nais/prod.yaml
deploy_to_prod_fritekstAvslag:
name: Deploy to prod
permissions:
contents: read
id-token: write
uses: navikt/su-se-bakover/.github/workflows/reusable-deploy.yml@master
needs: build-test-push-image
with:
var: image=europe-north1-docker.pkg.dev/nais-management-233d/supstonad/su-se-bakover-datapakker-fritekstavslag-job:${{ github.sha }}
cluster: prod-fss
resource: datapakker/fritekstAvslag/.nais/prod.yaml