Skip to content

Commit

Permalink
Update To New Tf Workflows
Browse files Browse the repository at this point in the history
* Update three caller workflows to use the new outputs from
the mitlib-tf-workloads-ecr repository (so that they call
the new shared workflows that are stored in our .github repo
  • Loading branch information
cabutlermit committed Mar 13, 2023
1 parent 0d07262 commit 666a95f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
10 changes: 7 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 alma-webhook-lambdas-dev app repository ###
name: Dev Build and Deploy lambda 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,11 +13,12 @@ on:

jobs:
deploy:
name: Dev Deploy lambda Container
uses: mitlibraries/.github/.github/workflows/lambda-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: "alma-webhook-lambdas-gha-dev"
ECR: "alma-webhook-lambdas-dev"
FUNCTION: "alma-webhook-lambdas-dev"
# PREBUILD:
10 changes: 5 additions & 5 deletions .github/workflows/prod-promote.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
### This is the Terraform-generated prod-promote.yml workflow for the alma-webhook-lambdas-prod app repository ###
name: Prod Promote Lambda Container
### This is the Terraform-generated prod-promote.yml workflow for the alma-webhook-lambdas-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 Lambda Container
uses: mitlibraries/.github/.github/workflows/lambda-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"
Expand All @@ -17,4 +18,3 @@ jobs:
ECR_STAGE: "alma-webhook-lambdas-stage"
ECR_PROD: "alma-webhook-lambdas-prod"
FUNCTION: "alma-webhook-lambdas-prod"

11 changes: 7 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 alma-webhook-lambdas-stage repository ###
name: Stage Build and Deploy Lambda Container
### This is the Terraform-generated dev-build.yml workflow for the alma-webhook-lambdas-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,8 +13,8 @@ on:

jobs:
deploy:
name: Stage Deploy Lambda Container
uses: mitlibraries/.github/.github/workflows/lambda-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"
Expand Down

0 comments on commit 666a95f

Please sign in to comment.