Skip to content

Commit

Permalink
Update To New Tf Workflows
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cabutlermit committed Mar 15, 2023
1 parent f7e6c30 commit e995d46
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
### This is the Terraform-generated dev-build.yml workflow for the timdex-index-manager-dev app repository ###
name: Dev Build and Deploy Fargate Container
### If this is a Lambda repo, uncomment the FUNCTION line at the end of the document ###
### If the container requires any additional pre-build commands, uncomment and edit ###
### the PREBUILD line at the end of the document. ###
name: Dev Container Build and Deploy
on:
workflow_dispatch:
pull_request:
branches:
- main
paths-ignore:
- ".github/**"
- '.github/**'

jobs:
deploy:
name: Dev Deploy Fargate Container
uses: mitlibraries/.github/.github/workflows/fargate-shared-deploy-dev.yml@main
name: Dev Container Deploy
uses: mitlibraries/.github/.github/workflows/ecr-shared-deploy-dev.yml@main
secrets: inherit
with:
AWS_REGION: "us-east-1"
GHA_ROLE: "timdex-index-manager-gha-dev"
ECR: "timdex-index-manager-dev"
# FUNCTION: ""
# PREBUILD:
11 changes: 7 additions & 4 deletions .github/workflows/prod-promote.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
### This is the Terraform-generated prod-promote.yml workflow for the timdex-index-manager-prod app repository ###
name: Prod Promote Fargate Container
### This is the Terraform-generated prod-promote.yml workflow for the timdex-index-manager-prod repository. ###
### If this is a Lambda repo, uncomment the FUNCTION line at the end of the document. ###
name: Prod Container Promote
on:
workflow_dispatch:
release:
types: [published]

jobs:
deploy:
name: Prod Promote Fargate Container
uses: mitlibraries/.github/.github/workflows/fargate-shared-promote-prod.yml@main
name: Prod Container Promote
uses: mitlibraries/.github/.github/workflows/ecr-shared-promote-prod.yml@main
secrets: inherit
with:
AWS_REGION: "us-east-1"
GHA_ROLE_STAGE: timdex-index-manager-gha-stage
GHA_ROLE_PROD: timdex-index-manager-gha-prod
ECR_STAGE: "timdex-index-manager-stage"
ECR_PROD: "timdex-index-manager-prod"
# FUNCTION: ""

13 changes: 9 additions & 4 deletions .github/workflows/stage-build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### This is the Terraform-generated stage-build.yml workflow for the timdex-index-manager-stage app repository ###
name: Stage Build and Deploy Fargate Container
### This is the Terraform-generated dev-build.yml workflow for the timdex-index-manager-stage app repository ###
### If this is a Lambda repo, uncomment the FUNCTION line at the end of the document ###
### If the container requires any additional pre-build commands, uncomment and edit ###
### the PREBUILD line at the end of the document. ###
name: Stage Container Build and Deploy
on:
workflow_dispatch:
push:
Expand All @@ -10,10 +13,12 @@ on:

jobs:
deploy:
name: Stage Deploy Fargate Container
uses: mitlibraries/.github/.github/workflows/fargate-shared-deploy-stage.yml@main
name: Stage Container Deploy
uses: mitlibraries/.github/.github/workflows/ecr-shared-deploy-stage.yml@main
secrets: inherit
with:
AWS_REGION: "us-east-1"
GHA_ROLE: "timdex-index-manager-gha-stage"
ECR: "timdex-index-manager-stage"
# FUNCTION: ""
# PREBUILD:

0 comments on commit e995d46

Please sign in to comment.