fix host not found when deploying

This commit is contained in:
Jack Goh
2018-08-02 15:15:57 +08:00
parent 7bcbdaa3aa
commit 2eae133a24
+2 -1
View File
@@ -25,9 +25,10 @@ staging:
- mkdir -p ~/.ssh
- echo -e "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- '[[ ! -e /.dockerenv ]] && exit 0'
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- ssh izyim@40.76.84.105 "git pull origin master && sudo docker-compose -f docker-prod.yml up -d"
environment:
name: staging
url: https://exchange-staging.izyim.com/
when: manual