diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-04-26 17:00:54 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-04-26 17:00:54 +0200 |
commit | 48d32644cd8e1846b66582f7e508598f77e39ccf (patch) | |
tree | 2b6d06617c902c103a3b8c2669305b62ceb9bbe3 | |
parent | e85778eecc8df3356a238396933c1303ab79124c (diff) | |
download | go-git-48d32644cd8e1846b66582f7e508598f77e39ccf.tar.gz |
travis: fix export private key
-rw-r--r-- | .travis.yml | 2 | ||||
-rwxr-xr-x | .travis/install_key.sh | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml index c2e1da4..c81b17e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ before_install: - > if [ "$TRAVIS_PULL_REQUEST" = "false" ] ; then \ bash .travis/install_key.sh; \ - SSH_TEST_PRIVATE_KEY=$HOME/.travis/deploy.pem; \ + export SSH_TEST_PRIVATE_KEY=$HOME/.travis/deploy.pem; \ else \ export SSH_AUTH_SOCK=""; \ fi diff --git a/.travis/install_key.sh b/.travis/install_key.sh index f2df1ab..95a6571 100755 --- a/.travis/install_key.sh +++ b/.travis/install_key.sh @@ -1,11 +1,9 @@ #!/bin/bash -export SSH_TEST_PRIVATE_KEY=$PWD/.travis/deploy.pem - openssl aes-256-cbc \ -K $encrypted_1477e58fe67a_key \ -iv $encrypted_1477e58fe67a_iv \ -in .travis/deploy.pem.enc \ - -out .travis/deploy.pem -d + -out $HOME/.travis/deploy.pem -d -chmod 600 .travis/deploy.pem +chmod 600 $HOME/.travis/deploy.pem |