Skip to content

fix: use fdkId as key to make sure all events of the same resource ar… #84

fix: use fdkId as key to make sure all events of the same resource ar…

fix: use fdkId as key to make sure all events of the same resource ar… #84

Workflow file for this run

name: Deploy to staging
on:
pull_request:
types: [ready_for_review, opened, reopened, synchronize]
branches:
- main
jobs:
run-tests:
name: Run tests
uses: Informasjonsforvaltning/workflows/.github/workflows/coverage-maven.yaml@main
with:
coverage_file_path: ./coverage.txt
java_version: 17
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
build:
name: Build fdk-mqa-dcat-validator when pull request is created
if: github.event.pull_request.draft == false
uses: Informasjonsforvaltning/workflows/.github/workflows/build-push.yaml@main
with:
app_name: fdk-mqa-dcat-validator
environment: staging
build_env: true
build_env_name: BINARY
build_env_value: fdk-mqa-dcat-validator
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
name: Deploy to staging environment with reusable workflow
if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false }}
needs: [ run-tests, build ]
uses: Informasjonsforvaltning/workflows/.github/workflows/kustomize-deploy.yaml@main
with:
app_name: fdk-mqa-dcat-validator
image: eu.gcr.io/digdir-fdk-infra/fdk-mqa-dcat-validator:staging_latest
environment: staging
cluster: digdir-fdk-dev
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DIGDIR_FDK_AUTODEPLOY: ${{ secrets.DIGDIR_FDK_DEV_AUTODEPLOY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}