Skip to content

Deploy environment

Deploy environment #28

Workflow file for this run

name: Deploy environment
on:
workflow_dispatch:
inputs:
docker_image:
type: string
environment:
type: environment
required: true
permissions:
packages: write
id-token: write
concurrency: deploy_${{ inputs.environment }}
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: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/deploy-aks-environment
id: deploy
with:
environment_name: ${{ inputs.environment }}
docker_image: ${{ inputs.docker_image || needs.package.outputs.docker_image }}
azure_credentials: ${{ secrets.AZURE_CREDENTIALS }}