-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (36 loc) · 1.16 KB
/
deploy-v2.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
name: Deploy v2
concurrency: build_and_deploy_v2_${{ github.ref_name }} # ensures that the job waits for any deployments triggered by the build workflow to finish
on:
workflow_dispatch:
inputs:
environment:
description: Environment to deploy to
required: true
type: choice
default: qa_aks
options:
- qa_aks
- staging_aks
- sandbox_aks
- production_aks
sha:
description: Commit sha to be deployed
required: true
jobs:
deploy:
name: ${{ github.event.inputs.environment }} deployment
runs-on: ubuntu-latest
environment:
name: ${{ github.event.inputs.environment }}
url: ${{ steps.deploy_app_v2.outputs.deploy-url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy App to ${{ github.event.inputs.environment }}
id: deploy_app_v2
uses: ./.github/actions/deploy_v2/
with:
azure-credentials: ${{ secrets.AZURE_CREDENTIALS }}
environment: ${{ github.event.inputs.environment }}
sha: ${{ github.event.inputs.sha }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}