Update .gitlab-ci.yml
This commit is contained in:
@@ -11,7 +11,7 @@ before_script:
|
||||
- echo "$v8_pk" | tr -d '\r' | ssh-add - > /dev/null
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- ssh-keyscan -p 24 $v8_ip >> ~/.ssh/known_hosts
|
||||
- ssh-keyscan -p 22 $v8_ip >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
#- mkdir CONFIG
|
||||
#- echo $config > $CI_PROJECT_DIR/CONFIG/config.php
|
||||
@@ -20,7 +20,7 @@ before_script:
|
||||
deploy:
|
||||
stage: deploy
|
||||
script:
|
||||
- rsync -Ppr -e "ssh -p 24" --progress --delete --exclude=".git" $CI_PROJECT_DIR/ $v8_user@$v8_ip:$v8_pwd
|
||||
- rsync -Ppr -e "ssh -p 22" --progress --delete --exclude=".git" $CI_PROJECT_DIR/ $v8_user@$v8_ip:$v8_pwd
|
||||
# Non interactive ssh gracefully reloads server
|
||||
#- ssh $hawk_bs_user@$hawk_bs_ip '. /etc/profile; pm2 reload all'
|
||||
only:
|
||||
|
||||
Reference in New Issue
Block a user