Skip to content

Commit

Permalink
BRS-961: Changing artifact directory to just short_hash (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltruong authored Dec 22, 2022
1 parent f90f628 commit 29233da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###

Expand Down

0 comments on commit 29233da

Please sign in to comment.