Skip to content

chore: bump deps (#155) #39

chore: bump deps (#155)

chore: bump deps (#155) #39

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 }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
build:
name: Build event-publishers when merged to main
uses: Informasjonsforvaltning/workflows/.github/workflows/build-push.yaml@main
needs: [test]
strategy:
matrix:
app_name: [fdk-dataset-event-publisher, fdk-data-service-event-publisher, fdk-concept-event-publisher, fdk-information-model-event-publisher, fdk-event-event-publisher, fdk-service-event-publisher]
with:
app_name: ${{ matrix.app_name }}
environment: prod
build_env: true
build_env_name: BINARY
build_env_value: ${{ matrix.app_name }}
monorepo_app: true
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
name: Deploy publishers to prod environment
needs: [test, build]
uses: Informasjonsforvaltning/workflows/.github/workflows/kustomize-deploy.yaml@main
with:
app_name: fdk-kafka-event-publisher
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 publishers to demo environment
needs: [deploy]
uses: Informasjonsforvaltning/workflows/.github/workflows/kustomize-deploy.yaml@main
with:
app_name: fdk-kafka-event-publisher
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 }}