From e995d4657e5e77df96a5ace48e69d340540ff905 Mon Sep 17 00:00:00 2001 From: Christopher Butler Date: Wed, 15 Mar 2023 12:57:48 -0400 Subject: [PATCH] Update To New Tf Workflows Why these changes are being introduced: The build/deploy workflows in our shared .github repository for Lambda functions and Fargate tasks have been cleaned up and consolidated. The mitlib-tf-workloads-ecr repository that generates the text for the three caller workflows has been updated and we just need to move those Terraform outputs into this repository to update the caller workflows. How this addresses that need: * Update three caller workflows to use the new outputs from the mitlib-tf-workloads-ecr repository Side effects: None. Resolves #211 --- .github/workflows/dev-build.yml | 13 +++++++++---- .github/workflows/prod-promote.yml | 11 +++++++---- .github/workflows/stage-build.yml | 13 +++++++++---- 3 files changed, 25 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 518a572..6ac75cb 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -1,19 +1,24 @@ ### This is the Terraform-generated dev-build.yml workflow for the timdex-index-manager-dev app repository ### -name: Dev Build and Deploy Fargate 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: branches: - main paths-ignore: - - ".github/**" + - '.github/**' jobs: deploy: - name: Dev Deploy Fargate Container - uses: mitlibraries/.github/.github/workflows/fargate-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: "timdex-index-manager-gha-dev" ECR: "timdex-index-manager-dev" + # FUNCTION: "" + # PREBUILD: diff --git a/.github/workflows/prod-promote.yml b/.github/workflows/prod-promote.yml index bf6a1cb..bedebbc 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 timdex-index-manager-prod app repository ### -name: Prod Promote Fargate Container +### This is the Terraform-generated prod-promote.yml workflow for the timdex-index-manager-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 Fargate Container - uses: mitlibraries/.github/.github/workflows/fargate-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" @@ -16,3 +17,5 @@ jobs: GHA_ROLE_PROD: timdex-index-manager-gha-prod ECR_STAGE: "timdex-index-manager-stage" ECR_PROD: "timdex-index-manager-prod" + # FUNCTION: "" + \ No newline at end of file diff --git a/.github/workflows/stage-build.yml b/.github/workflows/stage-build.yml index 1cd0010..159e7a0 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 timdex-index-manager-stage app repository ### -name: Stage Build and Deploy Fargate Container +### This is the Terraform-generated dev-build.yml workflow for the timdex-index-manager-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,10 +13,12 @@ on: jobs: deploy: - name: Stage Deploy Fargate Container - uses: mitlibraries/.github/.github/workflows/fargate-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" GHA_ROLE: "timdex-index-manager-gha-stage" ECR: "timdex-index-manager-stage" + # FUNCTION: "" + # PREBUILD: