Skip to content

chore: don't deploy on dependabot pr #41

chore: don't deploy on dependabot pr

chore: don't deploy on dependabot pr #41

name: Deploy to production & demo
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
name: Run tests when merging to main
uses: Informasjonsforvaltning/workflows/.github/workflows/test-rust.yaml@main
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
name: Build with reusable workflow when merging to main
uses: Informasjonsforvaltning/workflows/.github/workflows/build-push.yaml@main
with:
app_name: fdk-mqa-scoring-service
environment: prod
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GCP_SA_DIGDIR_FDK_GCR_KEY: ${{ secrets.GCP_SA_DIGDIR_FDK_GCR_KEY }}
deploy:
name: Deploy to prod environment with reusable workflow when test and build is successful
needs: [test,build]
uses: Informasjonsforvaltning/workflows/.github/workflows/deploy.yaml@main
with:
app_name: fdk-mqa-scoring-service
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 when prod deploy is successful
needs: [deploy]
uses: Informasjonsforvaltning/workflows/.github/workflows/deploy.yaml@main
with:
app_name: fdk-mqa-scoring-service
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 }}