Commit dddedc21 authored by Yohan Jarosz's avatar Yohan Jarosz 🐶
Browse files

Merge branch 'patch-2' into 'master'

Update .gitlab-ci.yml

See merge request core-services/r3lab/r3-pages!43
parents 6cf88fd7 a0339751
Pipeline #29910 passed with stages
in 4 minutes and 19 seconds
......@@ -21,7 +21,10 @@ build the website:
- build
variables:
JEKYLL_ENV: production
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_TAG
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
## Deploys the website to a separate VM
Deploy to production:
......@@ -94,3 +97,5 @@ Recover website from backup:
- ssh -p $SSHPORT $SSHCONNECT "find $BACKUP_LOC -mindepth 1 | read"
# Remove old files and restore them from archive
- ssh -p $SSHPORT $SSHCONNECT "bash restore.sh $WEB_LOC $BACKUP_LOC"
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