Dispatch Deploy Apps #3
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: 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" | |
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 }} | |
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_APP_CONFIGURATION_NAME: ${{ secrets.AZURE_APP_CONFIGURATION_NAME }} | |
with: | |
environment: ${{ inputs.environment }} | |
region: norwayeast | |
version: ${{ inputs.version }} | |
runMigration: ${{ inputs.runMigration }} |