Commit 09c91536 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

fix(ci): corrected path names in VM deployment

parent 6e95da4a
Pipeline #19347 passed with stages
in 1 minute and 12 seconds
......@@ -31,6 +31,6 @@ Deploy to production:
- chmod 644 ~/.ssh/known_hosts
script:
# don't forget to create ~/web/latest folder manually in the initial configuration on the VM!
- ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/web/web_$CI_JOB_ID"
- scp -P $SSHPORT -r build/* $SSHCONNECT:~/web/web_$CI_JOB_ID
- ssh -p $SSHPORT $SSHCONNECT "cd ~/web/latest && ln -fs ../web_$CI_JOB_ID/* . && cd .. && find . -type d -not -newermt '-1 minutes' -exec rm -rf {} +;"
- ssh -p $SSHPORT $SSHCONNECT "mkdir -p ~/web/r3lab_$CI_JOB_ID"
- scp -P $SSHPORT -r build/* $SSHCONNECT:~/web/r3lab_$CI_JOB_ID
- ssh -p $SSHPORT $SSHCONNECT "cd ~/web/latest && ln -fs ../r3lab_$CI_JOB_ID/* . && cd .. && find . -type d -name 'r3lab*' -not -newermt '-1 minutes' -exec rm -rf {} + && find . -type d -name 'latest*' -not -newermt '-1 minutes' -exec rm -rf {} +;"
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