Commit 8a838703 authored by Andrew Newdigate's avatar Andrew Newdigate 💬 Committed by John Northrup

Preseve mtimes on files for better caching

parent 662ed345
......@@ -208,7 +208,7 @@ review:
variables:
GIT_STRATEGY: none
script:
- rsync -avz --delete public ~/pages/$CI_COMMIT_REF_SLUG
- rsync --ignore-times --checksum --delete -avz public ~/pages/$CI_COMMIT_REF_SLUG
environment:
name: review/$CI_COMMIT_REF_SLUG
url: http://$CI_COMMIT_REF_SLUG.about.gitlab.com
......@@ -252,8 +252,7 @@ deploy:
- build_master
before_script: []
script:
- rsync --delete -avz public/ ~/public/
- curl -H "${FASTLY_API_TOKEN}" -X POST https://api.fastly.com/service/${FASTLY_SERVICE_ID}/purge_all
- rsync --ignore-times --checksum --delete -avz public/ ~/public/
environment:
name: production
url: https://about.gitlab.com
......
Markdown is supported
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