diff --git a/.travis.yml b/.travis.yml index 567dea9a..e26fad2b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,10 +15,13 @@ install: - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install -y zip ninja; fi before_script: + - type ${TRAVIS_HOME}/.ssh/known_hosts - export GIT_BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi) script: + - type ${TRAVIS_HOME}/.ssh/known_hosts - service/publish.bat + - type ${TRAVIS_HOME}/.ssh/known_hosts stages: - name: deploy diff --git a/service/publish.bat b/service/publish.bat index abaa157a..bc459235 100644 --- a/service/publish.bat +++ b/service/publish.bat @@ -69,8 +69,14 @@ git add service/ziti-tunnel/version.go 2>&1 CALL :FAIL %ERRORLEVEL% "git add failed" @echo git add service/ziti-tunnel/version.go complete: %ERRORLEVEL% -@echo issuing ssh-keyscan +@echo trying to output ${TRAVIS_HOME}/.ssh/known_hosts to stdout +type ${TRAVIS_HOME}/.ssh/known_hosts + +@echo issuing ssh-keyscan"zit ssh-keyscan -t rsa github.com 2>&1 >> /root/.ssh/known_hosts + +@echo trying to output ${TRAVIS_HOME}/.ssh/known_hosts to stdout + ssh -vT -i github_deploy_key git@github.com 2>&1 @echo issuing commit