1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-15 17:13:13 +02:00

deployment tweaks

This commit is contained in:
Matthias Kretschmann 2018-12-07 14:12:01 +01:00
parent f04f7acadf
commit a93b1ed7fa
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 10 additions and 12 deletions

View File

@ -1,6 +1,9 @@
language: node_js language: node_js
node_js: node node_js: node
git:
depth: 10
cache: cache:
directories: directories:
- node_modules - node_modules

View File

@ -13,27 +13,22 @@ set -e;
function s3sync { function s3sync {
aws s3 sync ./public s3://"$1" \ aws s3 sync ./public s3://"$1" \
--exclude "*" \
--include "*.js" \
--include "*.css" \
--include "static/*" \
--include "icons/*" \
--exclude "sw.js" \
--exclude "workbox*/*" \
--cache-control public,max-age=31536000,immutable \ --cache-control public,max-age=31536000,immutable \
--delete \ --delete \
--acl public-read \ --acl public-read
--quiet
aws s3 sync ./public s3://"$1" \ aws s3 sync ./public s3://"$1" \
--exclude "*" \ --exclude "*" \
--include "*.html" \ --include "*.html" \
--include "*.xml" \
--include "sw.js" \ --include "sw.js" \
--include "chunk-map.json" \
--include "sitemap.xml" \
--include ".iconstats.json" \
--include "humans.txt" \
--include "robots.txt" \
--cache-control public,max-age=0,must-revalidate \ --cache-control public,max-age=0,must-revalidate \
--delete \ --delete \
--acl public-read \ --acl public-read
--quiet
} }
## ##