Skip to content

Avoid secrets.tar exposure #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
secrets.tar
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ env:
before_install:
- export TZ=Asia/Tokyo
- git checkout ${DOCS_BRANCH}
- openssl aes-256-cbc -K $encrypted_9796e8faf501_key -iv $encrypted_9796e8faf501_iv -in secrets.tar.enc -out secrets.tar -d
- openssl aes-256-cbc -K $encrypted_9796e8faf501_key -iv $encrypted_9796e8faf501_iv -in secrets.tar.enc -out ~/secrets.tar -d
- cd ..
- pwd
- ls -la
- BASEDIR="$(pwd)"
- cd ~
- tar xvf "${BASEDIR}"/python-docs-ja/secrets.tar
- tar xvf ~/secrets.tar
- rm ~/secrets.tar
- chmod 600 ~/.ssh/python-docs-ja
- chmod 600 ~/.ssh/cpython-doc-catalog
# Hack from: https://gist.github.com/jamesmcfadden/d379e04e7ae2861414886af189ec59e5
Expand All @@ -49,7 +50,9 @@ script:
- cd "${BASEDIR}"/cpython-doc-catalog/Doc/locales
- tx pull --force --language ja
- cd ja/LC_MESSAGES
- git add .
- git add *.po **/*.po
- git status
- exit 1
- if [ $(git status --short | wc -l) -eq 0 ]; then echo "no .po file to upload"; else echo "I have .po file(s) to upload"; git commit --message="[skip ci] Update .po files"; git push --quiet "[email protected]:python/python-docs-ja.git" ${DOCS_BRANCH}:${DOCS_BRANCH}; fi
- rm -rf "${BASEDIR}"/cpython-doc-catalog/Doc/locales/ja
# renew-catalog-template
Expand Down
Binary file removed secrets.tar
Binary file not shown.
Binary file modified secrets.tar.enc
Binary file not shown.