Skip to content

Commit

Permalink
deploy from circle ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Jun 13, 2019
1 parent f5dc79f commit 11a800f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
6 changes: 2 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ jobs:
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
environment:
- ENCRYPTION_LABEL1: "b5c2730599da"
- ENCRYPTION_LABEL2: "85f76a180658"
- ENCRYPTION_LABEL3: "1b1c118ea62d"
- COMMIT_AUTHOR_EMAIL: "[email protected]"
- COMMIT_AUTHOR_EMAIL: "[email protected]"
- COMMIT_AUTHOR: "Circle CI"
- FILES_TO_PACKAGE: "assets background.js build icon.png index.html manifest.json README.md soljson.js package.json"
working_directory: ~/repo
Expand All @@ -41,6 +38,7 @@ jobs:
command: java -jar selenium-server-standalone-3.5.3.jar
background: true
- run: ./ci/browser_tests.sh
- run: if [ $CIRCLE_BRANCH == 'master' ]; then ./ci/deploy_from_travis_remix-alpha.sh fi

workflows:
version: 2
Expand Down
14 changes: 0 additions & 14 deletions ci/deploy_from_travis_remix-alpha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,4 @@ zip -r remix-$SHA.zip $FILES_TO_PACKAGE
git add -f $FILES_TO_PACKAGE remix-$SHA.zip
git commit -m "Built website from {$SHA}."

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_remix-live-alpha
chmod 600 deploy_key_remix-live-alpha
openssl aes-256-cbc -K $ENCRYPTED_KEY3 -iv $ENCRYPTED_IV3 -in ci/deploy_key_remix-live-alpha.enc -out deploy_key_remix-live-alpha -d
eval `ssh-agent -s`




ssh-add deploy_key_remix-live-alpha
git push -f [email protected]:ethereum/remix-live-alpha.git gh-pages
12 changes: 0 additions & 12 deletions ci/deploy_from_travis_remix-live.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,4 @@ zip -r remix-$SHA.zip $FILES_TO_PACKAGE
git add -f $FILES_TO_PACKAGE remix-$SHA.zip
git commit -m "Built website from {$SHA}."

ENCRYPTED_KEY_VAR2="encrypted_${ENCRYPTION_LABEL2}_key"
ENCRYPTED_IV_VAR2="encrypted_${ENCRYPTION_LABEL2}_iv"
ENCRYPTED_KEY2=${!ENCRYPTED_KEY_VAR2}
ENCRYPTED_IV2=${!ENCRYPTED_IV_VAR2}

touch deploy_key_remix-live
chmod 600 deploy_key_remix-live
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`

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

0 comments on commit 11a800f

Please sign in to comment.