From 9af97062687ebe38fb7073ee4580b729174545ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 15 Jul 2018 10:17:12 -0400 Subject: [PATCH] travis: also export ssh key for api triggered rebuilds --- ci/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/deploy.sh b/ci/deploy.sh index a3ba9d419..64f1532f5 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -2,7 +2,7 @@ set -eux -o pipefail # Exit with nonzero exit code if anything fails -if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then +if [[ "$TRAVIS_EVENT_TYPE" != "cron" ]] && [[ "$TRAVIS_EVENT_TYPE" != "api" ]]; then openssl aes-256-cbc -K $encrypted_025d6e877aa4_key -iv $encrypted_025d6e877aa4_iv -in ci/deploy_key.enc -out deploy_key -d chmod 600 deploy_key eval "$(ssh-agent -s)"