Skip to content

Commit

Permalink
Only store a single encrypted file
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Feb 4, 2018
1 parent 9c3911b commit 4418456
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions tool/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT.

echo decrypting npmrc
openssl aes-256-cbc -K $encrypted_d18df560dfb2_key -iv $encrypted_d18df560dfb2_iv \
-in tool/encrypted/npmrc.enc -out ~/.npmrc -d
openssl aes-256-cbc -K $encrypted_d18df560dfb2_key -iv $encrypted_d18df560dfb2_iv -in tool/encrypted/credentials.tar.enc \
-out credentials.tar -d

mkdir -p ~/.pub-cache
echo decrypting pub credentials
openssl aes-256-cbc -K $encrypted_d18df560dfb2_key -iv $encrypted_d18df560dfb2_iv \
-in tool/encrypted/pub-credentials.json.enc -out ~/.pub-cache/credentials.json -d

echo decrypting git credentials
openssl aes-256-cbc -K $encrypted_d18df560dfb2_key -iv $encrypted_d18df560dfb2_iv \
-in tool/encrypted/git-credentials.enc -out ~/.git-credentials -d
tar xfO credentials.tar npm > ~/.npmrc
tar xfO credentials.tar pub > ~/.pub-cache/credentials.json
tar xfO credentials.tar git > ~/.git-credentials

function travis_cmd() {
echo "\$ $@"
Expand Down
Binary file added tool/encrypted/credentials.tar.enc
Binary file not shown.
2 changes: 1 addition & 1 deletion tool/encrypted/npmrc.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c��i�P���ڋg����^�a�5��˧Ap����!~�f\ྉ.����\��u%����cD� �U4��)O
~͐^M�ʷ��:˯�2<9M��_���j� 'V��a��2�N�uh��N��O�!���*}�ކ�#x�e��\c�9��
Binary file modified tool/encrypted/pub-credentials.json.enc
Binary file not shown.

0 comments on commit 4418456

Please sign in to comment.