Commit dfde8ad7 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Merge branch '24-fix-link-to-minerva' into 'master'

fix: link to minerva should work

Closes #24

See merge request core-services/r3lab/r3-pages!45
parents 5cc1a4f3 b2cbe731
Pipeline #31698 passed with stages
in 3 minutes and 10 seconds
# In case something goes horribly wrong, you can fall back to `image: ruby:latest`
image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:1.1
image: git-r3lab.uni.lu:4567/r3/docker/jekyll-lcsb:1.6
stages:
- build
......@@ -48,7 +48,7 @@ Deploy to production:
- ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/web/r3lab_$CI_JOB_ID"
- scp -P $SSHPORT -r build/* $SSHCONNECT:~/web/r3lab_$CI_JOB_ID
# Make a symbolic link to newly copied files, then remove old tasks' files, and remove all broken symbolic links
- ssh -p $SSHPORT $SSHCONNECT "cd ~/web/latest && ln -fs ../r3lab_$CI_JOB_ID/* . || true && cd ~/web/latest/web/ && ln -fs ../r3lab_$CI_JOB_ID/web/* . && cd ~/web && find . -type d -name 'r3lab*' -not -newermt '-1 minutes' -exec rm -rf {} + && find -L ~/web/latest -type l -delete && ln -fs ~/web/latest/link_to_minerva.html ~/web/latest/web/minerva-website.html || true"
- ssh -p $SSHPORT $SSHCONNECT "cd ~/web/latest && ln -fs ../r3lab_$CI_JOB_ID/* . || true && cd ~/web/latest/web/ && ln -fs ../r3lab_$CI_JOB_ID/web/* . && cd ~/web && find . -type d -name 'r3lab*' -not -newermt '-1 minutes' -exec rm -rf {} + && find -L ~/web/latest -type l -delete && mkdir -p ~/web/latest/web/minerva-website && ln -fs ~/web/latest/link_to_minerva.html ~/web/latest/web/minerva-website.html && ln -fs ~/web/latest/link_to_minerva.html ~/web/latest/web/minerva-website/index.html || true"
## Backups
......
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