Commit ee3597f7 authored by Frederic Pasteleurs's avatar Frederic Pasteleurs

Reduce revision backlog to 10 days

parent 22444a27
Pipeline #202176254 failed with stages
in 1 minute and 53 seconds
......@@ -43,7 +43,7 @@ Deploy:
stage: Deploy
script:
- 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 /home/gitlab-jail/www/versions/* -type d -mtime +20 -exec rm -rf {} \;"
- 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 /home/gitlab-jail/www/versions/* -type d -mtime +10 -exec rm -rf {} \;"
Notify:
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