mirror of
https://github.com/kremalicious/blog.git
synced 2025-01-03 18:35:07 +01:00
deployment tweaks
This commit is contained in:
parent
f04f7acadf
commit
a93b1ed7fa
@ -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
|
||||||
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Loading…
Reference in New Issue
Block a user