Skip to content

Commit e995d46

Browse files
committed
Update To New Tf Workflows
Why these changes are being introduced: The build/deploy workflows in our shared .github repository for Lambda functions and Fargate tasks have been cleaned up and consolidated. The mitlib-tf-workloads-ecr repository that generates the text for the three caller workflows has been updated and we just need to move those Terraform outputs into this repository to update the caller workflows. How this addresses that need: * Update three caller workflows to use the new outputs from the mitlib-tf-workloads-ecr repository Side effects: None. Resolves #211
1 parent f7e6c30 commit e995d46

File tree

3 files changed

+25
-12
lines changed

3 files changed

+25
-12
lines changed

.github/workflows/dev-build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
### This is the Terraform-generated dev-build.yml workflow for the timdex-index-manager-dev app repository ###
2-
name: Dev Build and Deploy Fargate Container
2+
### If this is a Lambda repo, uncomment the FUNCTION line at the end of the document ###
3+
### If the container requires any additional pre-build commands, uncomment and edit ###
4+
### the PREBUILD line at the end of the document. ###
5+
name: Dev Container Build and Deploy
36
on:
47
workflow_dispatch:
58
pull_request:
69
branches:
710
- main
811
paths-ignore:
9-
- ".github/**"
12+
- '.github/**'
1013

1114
jobs:
1215
deploy:
13-
name: Dev Deploy Fargate Container
14-
uses: mitlibraries/.github/.github/workflows/fargate-shared-deploy-dev.yml@main
16+
name: Dev Container Deploy
17+
uses: mitlibraries/.github/.github/workflows/ecr-shared-deploy-dev.yml@main
1518
secrets: inherit
1619
with:
1720
AWS_REGION: "us-east-1"
1821
GHA_ROLE: "timdex-index-manager-gha-dev"
1922
ECR: "timdex-index-manager-dev"
23+
# FUNCTION: ""
24+
# PREBUILD:

.github/workflows/prod-promote.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
### This is the Terraform-generated prod-promote.yml workflow for the timdex-index-manager-prod app repository ###
2-
name: Prod Promote Fargate Container
1+
### This is the Terraform-generated prod-promote.yml workflow for the timdex-index-manager-prod repository. ###
2+
### If this is a Lambda repo, uncomment the FUNCTION line at the end of the document. ###
3+
name: Prod Container Promote
34
on:
45
workflow_dispatch:
56
release:
67
types: [published]
78

89
jobs:
910
deploy:
10-
name: Prod Promote Fargate Container
11-
uses: mitlibraries/.github/.github/workflows/fargate-shared-promote-prod.yml@main
11+
name: Prod Container Promote
12+
uses: mitlibraries/.github/.github/workflows/ecr-shared-promote-prod.yml@main
1213
secrets: inherit
1314
with:
1415
AWS_REGION: "us-east-1"
1516
GHA_ROLE_STAGE: timdex-index-manager-gha-stage
1617
GHA_ROLE_PROD: timdex-index-manager-gha-prod
1718
ECR_STAGE: "timdex-index-manager-stage"
1819
ECR_PROD: "timdex-index-manager-prod"
20+
# FUNCTION: ""
21+

.github/workflows/stage-build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
### This is the Terraform-generated stage-build.yml workflow for the timdex-index-manager-stage app repository ###
2-
name: Stage Build and Deploy Fargate Container
1+
### This is the Terraform-generated dev-build.yml workflow for the timdex-index-manager-stage app repository ###
2+
### If this is a Lambda repo, uncomment the FUNCTION line at the end of the document ###
3+
### If the container requires any additional pre-build commands, uncomment and edit ###
4+
### the PREBUILD line at the end of the document. ###
5+
name: Stage Container Build and Deploy
36
on:
47
workflow_dispatch:
58
push:
@@ -10,10 +13,12 @@ on:
1013

1114
jobs:
1215
deploy:
13-
name: Stage Deploy Fargate Container
14-
uses: mitlibraries/.github/.github/workflows/fargate-shared-deploy-stage.yml@main
16+
name: Stage Container Deploy
17+
uses: mitlibraries/.github/.github/workflows/ecr-shared-deploy-stage.yml@main
1518
secrets: inherit
1619
with:
1720
AWS_REGION: "us-east-1"
1821
GHA_ROLE: "timdex-index-manager-gha-stage"
1922
ECR: "timdex-index-manager-stage"
23+
# FUNCTION: ""
24+
# PREBUILD:

0 commit comments

Comments
 (0)