Commit ff40d06c authored by Cedrick Copol's avatar Cedrick Copol

CI Impact sur le site web à chaque modification

parent 09315f52
Pipeline #336 failed with stage
in 1 second
deploy:
only:
- master
variables:
PUBLIC_WWW: /home/ccopol/ccopol.fr
BACKUP_WWW: ccopol.fr_backup
script:
- set -e
- rsync -aqz $PUBLIC_WWW/ $BACKUP_WWW
- trap "echo 'A problem occurred. Reverting to backup.'; rsync -aqz --del $BACKUP_WWW/ $PUBLIC_WWW" EXIT
- rm -rf $PUBLIC_WWW/UApdg/*
- cp -rv * $PUBLIC_WWW/UApdg/
- trap - EXIT
tags:
- linux
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