Deploy pre-production environment #131
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |