Skip to content

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

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… #83

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 }}
GCP_SA_DIGDIR_FDK_GCR_KEY: ${{ secrets.GCP_SA_DIGDIR_FDK_GCR_KEY }}

Check failure on line 32 in .github/workflows/deploy-staging.yaml

View workflow run for this annotation

GitHub Actions / Deploy to staging

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-staging.yaml (Line: 32, Col: 34): Invalid secret, GCP_SA_DIGDIR_FDK_GCR_KEY is not defined in the referenced workflow.
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 }}