Skip to content

Commit 46bb45b

Browse files
committed
Renew credentials and these file name
1 parent 8012b0e commit 46bb45b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ before_install:
2323
- ls -la
2424
- BASEDIR="$(pwd)"
2525
- cd ~
26-
- openssl aes-256-cbc -K $encrypted_9796e8faf501_key -iv $encrypted_9796e8faf501_iv -in "${BASEDIR}/python-docs-ja/secrets.tar.enc" -out ~/secrets.tar -d
27-
- tar xvf ~/secrets.tar
28-
- rm ~/secrets.tar
29-
- chmod 600 ~/.ssh/python-docs-ja
30-
- chmod 600 ~/.ssh/cpython-doc-catalog
26+
- openssl aes-256-cbc -K $encrypted_9796e8faf501_key -iv $encrypted_9796e8faf501_iv -in "${BASEDIR}/python-docs-ja/secrets_${DOCS_BRANCH}.tar.enc" -out ~/secrets_{DOCS_BRANCH}.tar -d
27+
- tar xvf ~/secrets_{DOCS_BRANCH}.tar
28+
- rm ~/secrets_{DOCS_BRANCH}.tar
29+
- chmod 600 ~/.ssh/python-docs-ja_${DOCS_BRANCH}
30+
- chmod 600 ~/.ssh/cpython-doc-catalog_${CATALOG_BRANCH}
3131
# Hack from: https://gist.github.com/jamesmcfadden/d379e04e7ae2861414886af189ec59e5
32-
- echo -e "Host python-docs-ja.github.com\n\tHostName github.com\n\tIdentityFile ~/.ssh/python-docs-ja\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
33-
- echo -e "Host cpython-doc-catalog.github.com\n\tHostName github.com\n\tIdentityFile ~/.ssh/cpython-doc-catalog\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
32+
- echo -e "Host python-docs-ja.github.com\n\tHostName github.com\n\tIdentityFile ~/.ssh/python-docs-ja_${DOCS_BRANCH}\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
33+
- echo -e "Host cpython-doc-catalog.github.com\n\tHostName github.com\n\tIdentityFile ~/.ssh/cpython-doc-catalog_${CATALOG_BRANCH}\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
3434
- cat ~/.ssh/config
3535
- git config --global user.email "travisci-build-bot@example.com"
3636
- git config --global user.name "Autobuild bot on TravisCI"

secrets.tar.enc

-7.02 KB
Binary file not shown.

secrets_3.6.tar.enc

7.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)