From 88aa38e1052b3643b5c675981af0890b3c6e58bd Mon Sep 17 00:00:00 2001 From: Jose Nino Date: Fri, 17 Feb 2017 15:22:46 -0800 Subject: [PATCH] docs: move key decryption to master --- .travis.yml | 5 ----- docs/publish.sh | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index cf8c91bc64b06..a6aac4655b73f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,9 +12,4 @@ env: - TEST_TYPE=coverage - TEST_TYPE=asan - TEST_TYPE=docs -# .publishdocskey.enc is an encoded ssh key used to push to our gh-pages branch. -# travis encrypted the key, and set up two secret variables to decrypt the key: -# $encrypted_b1a4cc52fa4a_key, and $encrypted_b1a4cc52fa4a_iv. The command -# below uses those vars to decrypt the key. -before_script: openssl aes-256-cbc -K $encrypted_b1a4cc52fa4a_key -iv $encrypted_b1a4cc52fa4a_iv -in .publishdocskey.enc -out .publishdocskey -d script: ./ci/ci_steps.sh diff --git a/docs/publish.sh b/docs/publish.sh index 99b53196a0d9a..f0fc42fbe88b6 100755 --- a/docs/publish.sh +++ b/docs/publish.sh @@ -8,6 +8,12 @@ BUILD_SHA=`git rev-parse HEAD` if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] then + # .publishdocskey.enc is an encoded ssh key used to push to our gh-pages branch. + # travis encrypted the key, and set up two secret variables to decrypt the key: + # $encrypted_b1a4cc52fa4a_key, and $encrypted_b1a4cc52fa4a_iv. The command + # below uses those vars to decrypt the key. + openssl aes-256-cbc -K $encrypted_b1a4cc52fa4a_key -iv $encrypted_b1a4cc52fa4a_iv -in .publishdocskey.enc -out .publishdocskey -d + # Set up ssh config to be able to push the docs to github. echo "Setting up ssh" mkdir -p ~/.ssh