Commit 79afa2ad authored by Eric Eastwood's avatar Eric Eastwood

Try ssh commands in a single-line string

parent bdc2a916
Pipeline #6342054 passed with stages
in 7 minutes and 43 seconds
......@@ -57,13 +57,7 @@ deploy:
stage: deploy
script:
- rsync -r --delete-after --quiet ./ $SSH_USER@$DEPLOY_HOST::apilab/
# The EOF heredoc needs to use tabs if we want to indent things
- ssh $SSH_USER@$DEPLOY_HOST <<-EOF
. ~/.bashrc;
. ~/.nvm/nvm.sh;
nvm use stable;
pm2 restart apilab;
EOF
- ssh $SSH_USER@$DEPLOY_HOST '. ~/.bashrc && . ~/.nvm/nvm.sh && nvm use stable && pm2 restart apilab'
environment:
name: production
url: https://apilab.gitlab.org
......
......@@ -9,7 +9,7 @@ info:
See https://gitlab.com/gitlab-org/apilab
host: apilab.gitlab.com
host: apilab.gitlap.com
schemes:
- https
......
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