File tree Expand file tree Collapse file tree 4 files changed +27
-116
lines changed Expand file tree Collapse file tree 4 files changed +27
-116
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
jobs :
9
9
test :
10
10
uses : ./.github/workflows/test.yml
11
- deploy-mavis :
11
+ deploy :
12
12
needs : test
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
- environment : ["qa", " test" ]
17
- uses : ./.github/workflows/deploy-mavis .yml
16
+ environment : [qa, test]
17
+ uses : ./.github/workflows/deploy.yml
18
18
with :
19
19
environment : ${{ matrix.environment }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : Deploy
2
- run-name : >-
3
- ${{ github.event_name == 'workflow_dispatch'
4
- && format('Copilot ({0})', inputs.environment)
5
- || 'Copilot (All staging environments)' }}
2
+ run-name : Deploy to ${{ inputs.environment }}
3
+
4
+ concurrency :
5
+ group : deploy-${{ inputs.environment }}
6
6
7
7
on :
8
- push :
9
- branches : [main]
8
+ workflow_call :
9
+ inputs :
10
+ environment :
11
+ required : true
12
+ type : string
10
13
workflow_dispatch :
11
14
inputs :
12
15
environment :
13
- description : " Deployment environment"
16
+ description : Deployment environment
14
17
required : true
15
18
type : choice
16
19
options :
17
20
- qa
21
+ - poc
18
22
- test
19
23
- preview
20
24
- training
21
25
- production
26
+ - copilotmigration
22
27
23
28
jobs :
24
- Deploy :
25
- strategy :
26
- fail-fast : false
27
- matrix :
28
- environment : >-
29
- ${{ fromJSON(github.event_name == 'workflow_dispatch'
30
- && format('["{0}"]', inputs.environment)
31
- || '["qa", "test"]') }}
32
- uses : ./.github/workflows/_deploy-template.yml
29
+ build-and-push-image :
30
+ uses : ./.github/workflows/build-and-push-image.yml
31
+ deploy-infrastructure :
32
+ needs : build-and-push-image
33
+ uses : ./.github/workflows/deploy-infrastructure.yml
34
+ with :
35
+ environment : ${{ inputs.environment }}
36
+ deploy-application :
37
+ needs : deploy-infrastructure
38
+ uses : ./.github/workflows/deploy-application.yml
33
39
with :
34
- environment : ${{ matrix.environment }}
35
- aws-account-id : >-
36
- ${{ matrix.environment == 'production'
37
- && 'arn:aws:iam::820242920762:role/GitHubActionsRole'
38
- || 'arn:aws:iam::393416225559:role/GitHubActionsRole' }}
40
+ environment : ${{ inputs.environment }}
41
+ image_tag : ${{ github.sha }}
You can’t perform that action at this time.
0 commit comments