Skip to content

Commit

Permalink
Merge pull request #58 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 9e0d418 + 84efb6b commit 8168252
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### This is the Terraform-generated dev-build.yml workflow for the transmogrifier-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:
Expand All @@ -10,10 +13,12 @@ on:

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: "transmogrifier-gha-dev"
ECR: "transmogrifier-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 transmogrifier-prod app repository ###
name: Prod Promote Fargate Container
### This is the Terraform-generated prod-promote.yml workflow for the transmogrifier-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: transmogrifier-gha-stage
GHA_ROLE_PROD: transmogrifier-gha-prod
ECR_STAGE: "transmogrifier-stage"
ECR_PROD: "transmogrifier-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 transmogrifier-stage app repository ###
name: Stage Build and Deploy Fargate Container
### This is the Terraform-generated dev-build.yml workflow for the transmogrifier-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: "transmogrifier-gha-stage"
ECR: "transmogrifier-stage"
# FUNCTION: ""
# PREBUILD:

0 comments on commit 8168252

Please sign in to comment.