-
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.
Merge pull request #15 from MITLibraries/pr4-ci-aws
PR4 - Add CI and AWS terraform
- Loading branch information
Showing
8 changed files
with
196 additions
and
16 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,28 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
|
||
# Maintain dependencies for application | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
reviewers: | ||
- "MITLibraries/dataeng" | ||
|
||
# Maintain dependencies for Docker | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
reviewers: | ||
- "MITLibraries/dataeng" |
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,39 @@ | ||
### What does this PR do? | ||
|
||
Describe the overall purpose of the PR changes. Doesn't need to be as specific as the | ||
individual commits. | ||
|
||
### Helpful background context | ||
|
||
Describe any additional context beyond what the PR accomplishes if it is likely to be | ||
useful to a reviewer. | ||
|
||
Delete this section if it isn't applicable to the PR. | ||
|
||
### How can a reviewer manually see the effects of these changes? | ||
|
||
Explain how to see the proposed changes in the application if possible. | ||
|
||
Delete this section if it isn't applicable to the PR. | ||
|
||
### Includes new or updated dependencies? | ||
|
||
YES | NO | ||
|
||
### What are the relevant tickets? | ||
|
||
Include links to Jira Software and/or Jira Service Management tickets here. | ||
|
||
### Developer | ||
|
||
- [ ] All new ENV is documented in README (or there is none) | ||
- [ ] Stakeholder approval has been confirmed (or is not needed) | ||
|
||
### Code Reviewer | ||
|
||
- [ ] The commit message is clear and follows our guidelines | ||
(not just this pull request message) | ||
- [ ] There are appropriate tests covering any new functionality | ||
- [ ] The documentation has been updated or is unnecessary | ||
- [ ] The changes have been verified | ||
- [ ] New dependencies are appropriate or there were no changes |
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,7 @@ | ||
name: CI | ||
on: push | ||
jobs: | ||
test: | ||
uses: mitlibraries/.github/.github/workflows/python-shared-test.yml@main | ||
lint: | ||
uses: mitlibraries/.github/.github/workflows/python-shared-lint.yml@main |
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-dev 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: Dev Container Build and Deploy | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '.github/**' | ||
|
||
jobs: | ||
deploy: | ||
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: "browsertrix-harvester-gha-dev" | ||
ECR: "browsertrix-harvester-dev" | ||
# 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
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
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