-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 983 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 }}