Update .gitlab-ci.yml
This commit is contained in:
parent
a1b8ad5185
commit
efea4cca6a
@ -21,7 +21,7 @@ deploy_prod:
|
||||
- chmod 700 ~/.ssh/key
|
||||
- printf "host $PROD_HOST\n IdentityFile ~/.ssh/key" > ~/.ssh/config
|
||||
#- chmod 600 "$SSH_PRIVATE_KEY"
|
||||
- ssh-keyscan $PROD_HOST >> ~/.ssh/known_hosts
|
||||
- (ssh-keyscan $PROD_HOST >> ~/.ssh/known_hosts) || echo "I tryed"
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
script:
|
||||
- git remote add dokku ssh://dokku@$PROD_HOST/exchange-bot || echo "Already exists"
|
||||
|
Reference in New Issue
Block a user