Skip to content

Commit

Permalink
BRS-359-6: Fix S3 $DIR_NAME Variable in Test/Prod Deploy Actions (#382)
Browse files Browse the repository at this point in the history
* fix s3 dir_name variable in deploy actions again

Signed-off-by: David <daveclaveau@gmail.com>

* fix s3 dir_name variable in deploy actions syntax

Signed-off-by: David <daveclaveau@gmail.com>

---------

Signed-off-by: David <daveclaveau@gmail.com>
  • Loading branch information
davidclaveau authored Sep 11, 2024
1 parent d9b41ff commit 997157e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Deploy to S3
env:
S3_BUCKET: ${{ vars.AR_ADMIN_PROJECT_NAME }}-${{ vars.ENVIRONMENT_STAGE }}
DIR_NAME: ${{ inputs.releaseTag }}
DIR_NAME: ${{ github.event.inputs.releaseTag || github.sha }}
WORKING_DIRECTORY: ./
run: |
aws s3 sync dist/$WORKING_DIRECTORY s3://$S3_BUCKET/$DIR_NAME
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 @@ -119,7 +119,7 @@ jobs:
- name: Deploy to S3
env:
S3_BUCKET: ${{ vars.AR_ADMIN_PROJECT_NAME }}-${{ vars.ENVIRONMENT_STAGE }}
DIR_NAME: ${{ inputs.releaseTag }}
DIR_NAME: ${{ github.event.inputs.releaseTag || github.sha }}
WORKING_DIRECTORY: ./
run: |
aws s3 sync dist/$WORKING_DIRECTORY s3://$S3_BUCKET/$DIR_NAME
Expand Down

0 comments on commit 997157e

Please sign in to comment.