Skip to content
Snippets Groups Projects
Commit 8289b37d authored by Peter Walter's avatar Peter Walter
Browse files

add cache time and delete setting for s3 sync

parent 652849df
No related branches found
No related tags found
No related merge requests found
......@@ -14,12 +14,16 @@ DEPLOY_PATH="web_guidelines/${PROJECT}/${BRANCH}";
if [ "${1:-''}" = "prod" ]; then
S3_BUCKET=${S3_BUCKET_PROD};
MAX_AGE=60; # 1min
else
S3_BUCKET=${S3_BUCKET_DEV};
MAX_AGE=60; # 1min
fi;
# push to AWS (exclude bin and .git)
aws s3 sync . s3://${S3_BUCKET}/${DEPLOY_PATH} \
--exclude ".git*" \
--exclude "bin/*" \
--delete \
--cache-control "max-age=${MAX_AGE}" \
;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment