Skip to content

Commit

Permalink
Merge pull request #520 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 authored Mar 23, 2023
2 parents 7224f0c + 1ea0dcd commit de7b536
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 oai-pmh-harvester-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: "oai-pmh-harvester-gha-dev"
ECR: "oai-pmh-harvester-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 oai-pmh-harvester-prod app repository ###
name: Prod Promote Fargate Container
### This is the Terraform-generated prod-promote.yml workflow for the oai-pmh-harvester-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: oai-pmh-harvester-gha-stage
GHA_ROLE_PROD: oai-pmh-harvester-gha-prod
ECR_STAGE: "oai-pmh-harvester-stage"
ECR_PROD: "oai-pmh-harvester-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 oai-pmh-harvester-stage app repository ###
name: Stage Build and Deploy Fargate Container
### This is the Terraform-generated dev-build.yml workflow for the oai-pmh-harvester-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: "oai-pmh-harvester-gha-stage"
ECR: "oai-pmh-harvester-stage"
# FUNCTION: ""
# PREBUILD:

0 comments on commit de7b536

Please sign in to comment.