-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (56 loc) · 2.08 KB
/
dispatch-deploy-apps.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Dispatch Deploy Apps
on:
workflow_dispatch:
inputs:
environment:
description: "Environment to deploy to"
required: true
default: "test"
type: choice
options:
- test
- staging
- prod
version:
description: "Version to deploy. Needs to be a git tag (exclude the v prefix)"
required: true
type: string
runMigration:
description: "Whether to run migration or not"
default: false
required: false
type: boolean
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ inputs.environment }}
jobs:
generate-git-short-sha:
name: Generate git short sha
uses: ./.github/workflows/workflow-generate-git-short-sha.yml
get-current-version:
name: Get current version
uses: ./.github/workflows/workflow-get-current-version.yml
check-for-changes:
name: Check for changes
uses: ./.github/workflows/workflow-check-for-changes.yml
deploy-apps:
name: Deploy apps to ${{ inputs.environment }}
needs:
- generate-git-short-sha
- get-current-version
- check-for-changes
uses: ./.github/workflows/workflow-deploy-apps.yml
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_RESOURCE_GROUP_NAME: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
AZURE_ENVIRONMENT_KEY_VAULT_NAME: ${{ secrets.AZURE_ENVIRONMENT_KEY_VAULT_NAME }}
AZURE_CONTAINER_APP_ENVIRONMENT_NAME: ${{ secrets.AZURE_CONTAINER_APP_ENVIRONMENT_NAME }}
AZURE_APP_INSIGHTS_CONNECTION_STRING: ${{ secrets.AZURE_APP_INSIGHTS_CONNECTION_STRING }}
AZURE_APPLICATION_INSIGHTS_INSTRUMENTATION_KEY: ${{ secrets.AZURE_APPLICATION_INSIGHTS_INSTRUMENTATION_KEY }}
AZURE_APP_CONFIGURATION_NAME: ${{ secrets.AZURE_APP_CONFIGURATION_NAME }}
with:
environment: ${{ inputs.environment }}
region: norwayeast
version: ${{ inputs.version }}
runMigration: ${{ inputs.runMigration }}