mirror of
https://github.com/offen/website.git
synced 2024-11-24 18:00:27 +01:00
automatically run invalidation during deployment
This commit is contained in:
parent
b656329011
commit
4d231da885
@ -18,14 +18,17 @@ jobs:
|
|||||||
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
if [ "${CIRCLE_BRANCH}" == "master" ]; then
|
||||||
export SITEURL="https://www.offen.dev"
|
export SITEURL="https://www.offen.dev"
|
||||||
export BUCKET="offen-dev-production"
|
export BUCKET="offen-dev-production"
|
||||||
|
export DISTRIBUTION="E2UP8XHLFOC3QC"
|
||||||
export ROBOTS_FILE="robots.txt.production"
|
export ROBOTS_FILE="robots.txt.production"
|
||||||
else
|
else
|
||||||
export SITEURL="https://staging.offen.dev"
|
export SITEURL="https://staging.offen.dev"
|
||||||
export BUCKET="offen-dev-staging"
|
export BUCKET="offen-dev-staging"
|
||||||
|
export DISTRIBUTION="E13I20LK8ASYFH"
|
||||||
export ROBOTS_FILE="robots.txt.staging"
|
export ROBOTS_FILE="robots.txt.staging"
|
||||||
fi
|
fi
|
||||||
make build
|
make build
|
||||||
aws s3 sync --delete ./output/. s3://$BUCKET
|
aws s3 sync --delete ./output/. s3://$BUCKET
|
||||||
|
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION --paths "/*"
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
Loading…
Reference in New Issue
Block a user