From 8ef07af4bf9edbc84cea541f4d14c66c258ce5c5 Mon Sep 17 00:00:00 2001 From: dovholuknf <46322585+dovholuknf@users.noreply.github.com> Date: Wed, 5 Aug 2020 13:34:10 -0400 Subject: [PATCH] still fighting with travis --- .travis.yml | 3 +++ service/publish.bat | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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