Skip to content

Commit 0e22852

Browse files
committed
Enable manual deployment
1 parent f44d63e commit 0e22852

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

.github/workflows/continuous-deployment.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
name: Continuous deployment
2-
run-name: Continuous deployment of ${{ github.ref_name }} to QA and Test
2+
run-name: >-
3+
${{ github.event_name == 'workflow_dispatch'
4+
&& format('Deployment of ${{ github.ref_name }} to {0}', inputs.environment)
5+
|| 'Continuous deployment of ${{ github.ref_name }} to QA and Test' }}
36
47
on:
58
push:
69
branches: [MAV-921_continuous_deployment_job]
10+
workflow_dispatch:
11+
inputs:
12+
environment:
13+
description: Deployment environment
14+
required: true
15+
type: choice
16+
options:
17+
- qa
18+
- poc
19+
- copilotmigration
20+
- test
21+
- preview
22+
- training
23+
- production
724

825
jobs:
926
test:
@@ -16,7 +33,10 @@ jobs:
1633
strategy:
1734
fail-fast: false
1835
matrix:
19-
environment: [qa, test]
36+
environment: >-
37+
${{ fromJSON(github.event_name == 'workflow_dispatch'
38+
&& format('["{0}"]', inputs.environment)
39+
|| '["qa", "test"]') }}
2040
uses: ./.github/workflows/deploy-infrastructure.yml
2141
with:
2242
environment: ${{ matrix.environment }}
@@ -25,7 +45,10 @@ jobs:
2545
strategy:
2646
fail-fast: false
2747
matrix:
28-
environment: [ qa, test ]
48+
environment: >-
49+
${{ fromJSON(github.event_name == 'workflow_dispatch'
50+
&& format('["{0}"]', inputs.environment)
51+
|| '["qa", "test"]') }}
2952
uses: ./.github/workflows/deploy-application.yml
3053
with:
3154
environment: ${{ matrix.environment }}

0 commit comments

Comments
 (0)