Skip to content

fix: rm old workflow inputs & set correct image name #22

fix: rm old workflow inputs & set correct image name

fix: rm old workflow inputs & set correct image name #22

name: Deploy to production & demo
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy-production:
name: Deploy to prod on merge to main branch
uses: Informasjonsforvaltning/workflows/.github/workflows/build-push.yaml@main
with:
app_name: ai-project-service
environment: prod
build_env: true
build_env_name: BINARY
build_env_value: ai-project-service
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy-to-demo:
needs: build-and-deploy-production
name: Deploy to demo if prod-deploy is successful
uses: Informasjonsforvaltning/workflows/.github/workflows/kustomize-deploy.yaml@main
with:
app_name: ai-project-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 }}
DEPENDABOT_SLACK_WEBHOOK_URL: ${{ secrets.DEPENDABOT_SLACK_WEBHOOK_URL }}
deploy-to-prod:
needs: build-and-deploy-production
name: Deploy to prod if prod-deploy is successful
uses: Informasjonsforvaltning/workflows/.github/workflows/kustomize-deploy.yaml@main
with:
app_name: ai-project-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 }}