Skip to content

Commit

Permalink
safe source for project name
Browse files Browse the repository at this point in the history
  • Loading branch information
rrigato committed Feb 11, 2024
1 parent 54c36fd commit f8c9532
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/scripts/rewatch_build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

set -e

export PROJECT_NAME="rewatch"
export BUCKET_NAME="${PROJECT_NAME}-app-artifacts"
export DEPLOYMENT_PACKAGE="${PROJECT_NAME}_deployment_package.zip"

Expand Down Expand Up @@ -31,4 +30,8 @@ zip $DEPLOYMENT_PACKAGE -r $PROJECT_NAME \
zip -u $DEPLOYMENT_PACKAGE -j handlers/${PROJECT_NAME}_handler.py \
-x *__pycache__* --quiet

aws sts get-caller-identity
aws s3api put-object --bucket $BUCKET_NAME \
--region $REGION_NAME \
--key $PROJECT_NAME/$DEPLOYMENT_PACKAGE \
--body $DEPLOYMENT_PACKAGE \
--tagging "cloudformation=no&project=${PROJECT_NAME}&keep=yes"

0 comments on commit f8c9532

Please sign in to comment.