From 29233da2f1f7f3af7855ed988c025e4b33ed6473 Mon Sep 17 00:00:00 2001 From: Daniel Truong Date: Thu, 22 Dec 2022 11:09:50 -0800 Subject: [PATCH] BRS-961: Changing artifact directory to just short_hash (#105) --- .github/workflows/deploy_dev.yml | 2 +- .github/workflows/deploy_prod.yml | 2 +- .github/workflows/deploy_test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index 9800b5f..dd206d3 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -49,7 +49,7 @@ jobs: - name: Upload zips to S3 run: | git_hash=$(git rev-parse --short HEAD) - aws s3 sync ./artifacts s3://parks-ar-lambda-artifacts/${{ env.GIT_BRANCH }}-$git_hash/ --exclude "*" --include "*.zip" --delete + aws s3 sync ./artifacts s3://parks-ar-lambda-artifacts/$git_hash/ --exclude "*" --include "*.zip" --delete - uses: actions/upload-artifact@v2 with: name: lambda-builds diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml index 68e213e..f323b95 100644 --- a/.github/workflows/deploy_prod.yml +++ b/.github/workflows/deploy_prod.yml @@ -48,7 +48,7 @@ jobs: role-skip-session-tagging: true - name: Download previous build from S3 - run: aws s3 cp s3://parks-ar-lambda-artifacts/${{ github.ref_name }}-${{ env.SHORT_HASH }}/ terraform/src/artifacts/ --recursive + run: aws s3 cp s3://parks-ar-lambda-artifacts/${{ env.SHORT_HASH }}/ terraform/src/artifacts/ --recursive ### Run Terragrunt ### diff --git a/.github/workflows/deploy_test.yml b/.github/workflows/deploy_test.yml index 57673b0..20241ce 100644 --- a/.github/workflows/deploy_test.yml +++ b/.github/workflows/deploy_test.yml @@ -46,7 +46,7 @@ jobs: role-skip-session-tagging: true - name: Download previous build from S3 - run: aws s3 cp s3://parks-ar-lambda-artifacts/${{ github.ref_name }}-${{ env.SHORT_HASH }}/ terraform/src/artifacts/ --recursive + run: aws s3 cp s3://parks-ar-lambda-artifacts/${{ env.SHORT_HASH }}/ terraform/src/artifacts/ --recursive ### Run Terragrunt ###