Skip to content

Commit

Permalink
publish files to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
yifan9916 committed Oct 17, 2018
1 parent 322b36d commit a660070
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ prepare_assets() {
upload_to_s3() {
echo "Uploading assets to S3"

# aws --region "eu-west-1" s3 cp dist "s3://as24-assets-eu-west-1/showcar-icons/test/" --recursive --exclude "*.html" --cache-control "max-age=2592000" --acl public-read
aws --region "eu-west-1" s3 cp dist "s3://as24-assets-eu-west-1/${SERVICE}/${BRANCH}/${COMMIT_HASH}/" --recursive --exclude "*.html" --cache-control "max-age=2592000" --acl public-read

# aws --region "eu-west-1" s3 cp dist "s3://as24-assets-eu-west-1/showcar-icons/test/" --recursive --exclude "*" --include "*.html" --cache-control "max-age=300" --acl public-read
aws --region "eu-west-1" s3 cp dist "s3://as24-assets-eu-west-1/${SERVICE}/${BRANCH}/${COMMIT_HASH}/" --recursive --exclude "*" --include "*.html" --cache-control "max-age=300" --acl public-read

# aws --region "eu-west-1" s3 cp dist "s3://as24-assets-eu-west-1/${SERVICE}/${BRANCH}/latest/" --recursive --exclude "*.html" --cache-control "max-age=2592000" --acl public-read

Expand Down

0 comments on commit a660070

Please sign in to comment.