Skip to content

Commit

Permalink
Merge pull request ethereum#651 from ethereum/origin/updateghpages
Browse files Browse the repository at this point in the history
deploy to yann300 githubpages
  • Loading branch information
yann300 committed Aug 2, 2017
2 parents 70f02ab + 60c77e0 commit 5b068d9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
global:
- ENCRYPTION_LABEL1="b5c2730599da"
- ENCRYPTION_LABEL2="85f76a180658"
- ENCRYPTION_LABEL3="1b1c118ea62d"
- COMMIT_AUTHOR_EMAIL="[email protected]"
- COMMIT_AUTHOR="Travis CI"
- FILES_TO_PACKAGE="assets background.js build icon.png index.html manifest.json README.md soljson.js"
Expand Down
43 changes: 29 additions & 14 deletions ci/deploy_from_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,33 @@ ENCRYPTED_IV_VAR2="encrypted_${ENCRYPTION_LABEL2}_iv"
ENCRYPTED_KEY2=${!ENCRYPTED_KEY_VAR2}
ENCRYPTED_IV2=${!ENCRYPTED_IV_VAR2}

touch deploy_key
touch deploy_key_remix-live
chmod 600 deploy_key deploy_key_remix-live
openssl aes-256-cbc -K $ENCRYPTED_KEY1 -iv $ENCRYPTED_IV1 -in ci/deploy_key.enc -out deploy_key -d
openssl aes-256-cbc -K $ENCRYPTED_KEY2 -iv $ENCRYPTED_IV2 -in ci/deploy_key_remix-live.enc -out deploy_key_remix-live -d


# touch deploy_key
# touch deploy_key_remix-live
# chmod 600 deploy_key deploy_key_remix-live
# openssl aes-256-cbc -K $ENCRYPTED_KEY1 -iv $ENCRYPTED_IV1 -in ci/deploy_key.enc -out deploy_key -d
# openssl aes-256-cbc -K $ENCRYPTED_KEY2 -iv $ENCRYPTED_IV2 -in ci/deploy_key_remix-live.enc -out deploy_key_remix-live -d
# eval `ssh-agent -s`
# ssh-add deploy_key
# git push -f [email protected]:ethereum/browser-solidity.git gh-pages
# ssh-add -D

# echo -n "remix.ethereum.org" > CNAME
# git add CNAME
# git commit --amend -m "Built website from {$SHA}."
# ssh-add deploy_key_remix-live
# git push -f [email protected]:ethereum/remix-live.git gh-pages

# deploy yann300 gh-pages
ENCRYPTED_KEY_VAR3="encrypted_${ENCRYPTION_LABEL3}_key"
ENCRYPTED_IV_VAR3="encrypted_${ENCRYPTION_LABEL3}_iv"
ENCRYPTED_KEY3=${!ENCRYPTED_KEY_VAR3}
ENCRYPTED_IV3=${!ENCRYPTED_IV_VAR3}

touch deploy_key_yann300_remix
chmod 600 deploy_key_yann300_remix
openssl aes-256-cbc -K $ENCRYPTED_KEY3 -iv $ENCRYPTED_IV3 -in ci/deploy_key_yann300_remix.enc -out deploy_key_yann300_remix -d
eval `ssh-agent -s`
ssh-add deploy_key
git push -f [email protected]:ethereum/browser-solidity.git gh-pages
ssh-add -D

echo -n "remix.ethereum.org" > CNAME
git add CNAME
git commit --amend -m "Built website from {$SHA}."
ssh-add deploy_key_remix-live
git push -f [email protected]:ethereum/remix-live.git gh-pages
ssh-add deploy_key_yann300_remix
git push -f [email protected]:yann300/remix.git gh-pages
Binary file added ci/deploy_key_yann300_remix.enc
Binary file not shown.

0 comments on commit 5b068d9

Please sign in to comment.