-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why these changes are being introduced: The ECR repositories have been deployed in all three environments in AWS. This updates the app repo with the associated deployment automation workflows. How this addresses that need: * Add the `stage-build` workflow from the mitlib-tf-workloads-ecr repo * Add the `prod-promote` workflow from the mitlib-tf-workloads-ecr repo * Minor formatting changes to the Makefile (to put the Tf-generated header at the top of the file) Side effects of this change: Merges to the `main` branch will now automatically deploy to Stage-Workloads. Tagged releases on the `main` branch will automatically deploy to Prod-Workloads. Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/TIMX-248
- Loading branch information
1 parent
aab2c6e
commit c88a740
Showing
3 changed files
with
51 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### This is the Terraform-generated prod-promote.yml workflow for the browsertrix-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 Container Promote | ||
uses: mitlibraries/.github/.github/workflows/ecr-shared-promote-prod.yml@main | ||
secrets: inherit | ||
with: | ||
AWS_REGION: "us-east-1" | ||
GHA_ROLE_STAGE: browsertrix-harvester-gha-stage | ||
GHA_ROLE_PROD: browsertrix-harvester-gha-prod | ||
ECR_STAGE: "browsertrix-harvester-stage" | ||
ECR_PROD: "browsertrix-harvester-prod" | ||
# FUNCTION: "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### This is the Terraform-generated dev-build.yml workflow for the browsertrix-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: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '.github/**' | ||
|
||
jobs: | ||
deploy: | ||
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: "browsertrix-harvester-gha-stage" | ||
ECR: "browsertrix-harvester-stage" | ||
# FUNCTION: "" | ||
# PREBUILD: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters