Skip to content

fix: add missing tabs in demo env deploy file #48

fix: add missing tabs in demo env deploy file

fix: add missing tabs in demo env deploy file #48

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
with:
toolchain_tc: nightly-2024-11-01
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 }}
deploy:
name: Deploy to prod environment with reusable workflow when test and build is successful
needs: [test,build]
uses: Informasjonsforvaltning/workflows/.github/workflows/kustomize-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/kustomize-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 }}