Skip to content

Commit

Permalink
Merge pull request #31 from MITLibraries/deployment-workflows
Browse files Browse the repository at this point in the history
Automation for AWS Organization
  • Loading branch information
cabutlermit authored Aug 2, 2023
2 parents 775cdff + 6c7e386 commit b45930d
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### This is the Terraform-generated dev-build.yml workflow for the ###
### dspace-submission-service-dev app repository ###
### 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: "dspace-submission-service-gha-dev"
ECR: "dspace-submission-service-dev"
# PREBUILD:
19 changes: 19 additions & 0 deletions .github/workflows/prod-promote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### This is the Terraform-generated prod-promote.yml workflow for the ###
### dspace-submission-service-prod repository. ###
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: dspace-submission-service-gha-stage
GHA_ROLE_PROD: dspace-submission-service-gha-prod
ECR_STAGE: "dspace-submission-service-stage"
ECR_PROD: "dspace-submission-service-prod"
23 changes: 23 additions & 0 deletions .github/workflows/stage-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### This is the Terraform-generated stage-build.yml workflow for the ###
### dspace-submission-service-stage app repository ###
### 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: "dspace-submission-service-gha-stage"
ECR: "dspace-submission-service-stage"
# PREBUILD:

0 comments on commit b45930d

Please sign in to comment.