Skip to content

fix: tests should support kafka message key #12

fix: tests should support kafka message key

fix: tests should support kafka message key #12

name: Deploy to production & demo
on:
push:
branches:
- main
workflow_dispatch:
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
uses: Informasjonsforvaltning/workflows/.github/workflows/build-push.yaml@main
with:
app_name: fdk-mqa-dcat-validator
environment: prod
build_env: true
build_env_name: BINARY
build_env_value: fdk-mqa-dcat-validator
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy-prod:
name: Deploy to prod environment with reusable workflow
if: 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
environment: prod
cluster: digdir-fdk-prod
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DIGDIR_FDK_AUTODEPLOY: ${{ secrets.DIGDIR_FDK_PROD_AUTODEPLOY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
deploy-demo:
name: Deploy to demo environment with reusable workflow
if: 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
environment: demo
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 }}