Skip to content

New ssh key and travis config #175

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

Open
wants to merge 1 commit into
base: integration
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js
node_js:
- '6.9'
install: yarn install --production=false
install: yarn install --production=false
before_script: npm run lint
script: npm run build
after_success: bash ./scripts/deploy.sh
Expand All @@ -14,3 +14,4 @@ env:
- ENCRYPTION_LABEL: 0601d1c19287
- COMMIT_AUTHOR_LABEL: [email protected]
- NODE_ENV: production
secure: rgdpPXQeTH+MYoCPaVttlr1mjYbxHLdZF1hGDGMl0GRn6sz8+7HoR6YMTNvmAC8gS0OitB/y7PzSqR/FMd3bhKV7fVg8MXgCWnAY2KH2uPtrKeZO3SF0LHFl1FFb9gu5pN4OChhOV251ud8/ARfl6QdvhkUj+FLhmfVnIs69yV9L4I2+/Jay9OWdOrH5sn76NbVB1ZzLp377Sf1zjjjsdVudgr4RiIdCG+UN/dvB3bNOVVhSP40a0Tkdzxq/960PMD9zopQeIvpt2RNabfudCOw8bHCYOxnDgl2x09eFi/RcUaW4NU6IT6gz3mR1UCewNKoj/VQY8Z6cr1o0dlw2VAWXbsZD7nl/k07bblU16TJjWE481OjvhBcb0s+N+S0pVV28GwLSb6SLaL9XQ+Dui4uzMRIbi0AZbusgsXFo7ilobSFHSmAp1U1cqToJuhuYmF9IComsXRWI7HFPdt2LS0jsLlbOLHbcUCi+UdUHQgjBN0VjpJUQTO5I/faaAJEh7L+E2jJcWh36b2Zcb6rrSZVM+Olt+28lE+oTI4E1C1NvRbvLu4yJCzAH+7s/SUSVQHYnZzaR/rEyo5K8KzZbFYitDz0C8Rh81D5tY1LURRHzhHFfsvIHHjnMQYA2uuI1HqSc+iCI3khmo1HB2Gen0TGeFhD+8diQtNCR+kUjd/g=
10 changes: 0 additions & 10 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,5 @@ fi
git add . --all
git commit -m "Deploy to GitHub Pages: ${SHA}"

# Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc
ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
ENCRYPTED_KEY=${!ENCRYPTED_KEY_VAR}
ENCRYPTED_IV=${!ENCRYPTED_IV_VAR}
openssl aes-256-cbc -K $ENCRYPTED_KEY -iv $ENCRYPTED_IV -in ../deploy_key.enc -out deploy_key -d
chmod 600 deploy_key
eval `ssh-agent -s`
ssh-add deploy_key

# Now that we're all set up, we can push.
git push $SSH_REPO $TARGET_BRANCH