Commit d85fc59f authored by Frederic Pasteleurs's avatar Frederic Pasteleurs

Do the cleanup first :-)

parent 5e9e3e34
Pipeline #203840792 passed with stages
in 2 minutes and 31 seconds
......@@ -43,7 +43,7 @@ Deploy:
stage: Deploy
- echo $(date +%Y.%m.%d)
- tar cz public | ssh [email protected] "mkdir -p /www/versions/$(date +%Y.%m.%d); cd /www/versions/$(date +%Y.%m.%d); tar xz; rm /www/live; ln -sf versions/$(date +%Y.%m.%d)/public /www/live; find /www/versions/* -type d -mtime +10 -exec rm -rf {} \;"
- tar cz public | ssh [email protected] "find /www/versions/* -type d -mtime +10 -exec rm -rf {} \; ; mkdir -p /www/versions/$(date +%Y.%m.%d); cd /www/versions/$(date +%Y.%m.%d); tar xz; rm /www/live; ln -sf versions/$(date +%Y.%m.%d)/public /www/live"
stage: Notify
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