Skip to content

Commit 8004e36

Browse files
authored
Remove Copilot deploy workflow (#3333)
We're no longer deploying the service using Copilot so this workflow is no longer needed and can be safely removed.
2 parents d564d05 + 7c0e5a6 commit 8004e36

File tree

4 files changed

+27
-116
lines changed

4 files changed

+27
-116
lines changed

.github/workflows/_deploy-template.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/continuous-deployment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88
jobs:
99
test:
1010
uses: ./.github/workflows/test.yml
11-
deploy-mavis:
11+
deploy:
1212
needs: test
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
environment: ["qa", "test"]
17-
uses: ./.github/workflows/deploy-mavis.yml
16+
environment: [qa, test]
17+
uses: ./.github/workflows/deploy.yml
1818
with:
1919
environment: ${{ matrix.environment }}

.github/workflows/deploy-mavis.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
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 }}
66

77
on:
8-
push:
9-
branches: [main]
8+
workflow_call:
9+
inputs:
10+
environment:
11+
required: true
12+
type: string
1013
workflow_dispatch:
1114
inputs:
1215
environment:
13-
description: "Deployment environment"
16+
description: Deployment environment
1417
required: true
1518
type: choice
1619
options:
1720
- qa
21+
- poc
1822
- test
1923
- preview
2024
- training
2125
- production
26+
- copilotmigration
2227

2328
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
3339
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 }}

0 commit comments

Comments
 (0)