Skip to content

Deploy pre-production environment #131

Deploy pre-production environment

Deploy pre-production environment #131

Workflow file for this run

name: Deploy pre-production environment
on:
workflow_call:
inputs:
docker_image:
type: string
required: true
workflow_dispatch:
concurrency: deploy_preprod
jobs:
package:
name: Package application
if: inputs.docker_image == ''
uses: ./.github/workflows/package.yml
secrets: inherit
deploy_aks:
name: Deploy to AKS
needs: package
if: always() && (needs.package.result == 'success' || needs.package.result == 'skipped')
runs-on: ubuntu-latest
environment:
name: pre-production_aks
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/deploy-aks-environment
id: deploy
with:
environment_name: pre-production
docker_image: ${{ inputs.docker_image || needs.package.outputs.docker_image }}
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}