Skip to content

Commit

Permalink
Merge pull request #5 from airuleguy/hotfix/s3-protocol
Browse files Browse the repository at this point in the history
Failed miserably to correctly set bucket address.
  • Loading branch information
airuleguy authored Jun 12, 2020
2 parents a46bbc6 + 39f6e9a commit ca08ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ echo "[default]
aws_access_key_id = ${AWS_ACCESS_KEY_ID}
aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY}" > ~/.aws/credentials

(aws s3 ls s3:${AWS_S3_BUCKET}${FILE}) && \
(aws s3 ls s3://${AWS_S3_BUCKET}${FILE}) && \
rm -rf ~/.aws && \
echo "Ooops! Version already exists, aborting upload..." && \
exit 1 \
|| (aws s3 cp ${FILE} s3:${AWS_S3_BUCKET} --region ${AWS_REGION} $*) && rm -rf ~/.aws
|| (aws s3 cp ${FILE} s3://${AWS_S3_BUCKET} --region ${AWS_REGION} $*) && rm -rf ~/.aws

0 comments on commit ca08ba7

Please sign in to comment.