Add cloudflare purge

This commit is contained in:
2019-02-07 18:02:05 +01:00
parent 9e5b4aec50
commit ea2ccb11a1
+2
View File
@@ -16,5 +16,7 @@ deploy:
script:
- hugo
- rsync -av --delete --exclude presentations public/ james@shee.sh:/srv/www/jamesmcdonald
- echo "Purging CloudFlare cache"
- curl -X POST "https://api.cloudflare.com/client/v4/zones/8f213feeb6709de2ba2b70dd5cfa704e/purge_cache" -H "X-Auth-Email: $CLOUDFLARE_EMAIL" -H "X-Auth-Key: $CLOUDFLARE_KEY" -H "Content-Type: application/json" --data '{"purge_everything": true}'
only:
- master