Skip to content

Commit

Permalink
Merge pull request #214 from MITLibraries/update-caller-workflows
Browse files Browse the repository at this point in the history
Update To New Tf Workflows
  • Loading branch information
cabutlermit committed Mar 23, 2023
2 parents f7e6c30 + e995d46 commit a355d27
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 a355d27

Please sign in to comment.