From 666a95f63d9efbc0bcd5cc94c2385af92d28e16a Mon Sep 17 00:00:00 2001 From: Christopher Butler <60672715+cabutlermit@users.noreply.github.com> Date: Mon, 13 Mar 2023 17:17:03 -0400 Subject: [PATCH] Update To New Tf Workflows * 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 --- .github/workflows/dev-build.yml | 10 +++++++--- .github/workflows/prod-promote.yml | 10 +++++----- .github/workflows/stage-build.yml | 11 +++++++---- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index c02245f..bb015fb 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -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: @@ -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: diff --git a/.github/workflows/prod-promote.yml b/.github/workflows/prod-promote.yml index 2b11418..d906987 100644 --- a/.github/workflows/prod-promote.yml +++ b/.github/workflows/prod-promote.yml @@ -1,5 +1,6 @@ -### 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: @@ -7,8 +8,8 @@ on: 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" @@ -17,4 +18,3 @@ jobs: ECR_STAGE: "alma-webhook-lambdas-stage" ECR_PROD: "alma-webhook-lambdas-prod" FUNCTION: "alma-webhook-lambdas-prod" - \ No newline at end of file diff --git a/.github/workflows/stage-build.yml b/.github/workflows/stage-build.yml index c0e83a0..65a4110 100644 --- a/.github/workflows/stage-build.yml +++ b/.github/workflows/stage-build.yml @@ -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: @@ -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"