Skip to content

Commit

Permalink
Added encrypted ssh key for semrel
Browse files Browse the repository at this point in the history
  • Loading branch information
dtardoin-eb committed Apr 5, 2018
1 parent c98e097 commit a941037
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ node_js:
# Cache dependencies in $HOME/.yarn-cache across builds
cache: yarn

before_install:
- openssl aes-256-cbc -K "${encrypted_ba12a3340263_key}" -iv "${encrypted_ba12a3340263_iv}" -in git_deploy_key.enc -out /tmp/git_deploy_key -d
# Make sure only the current user can read the private key
- chmod 600 /tmp/git_deploy_key
# Create a script to return the passphrase environment variable to ssh-add
- echo 'echo ${SSH_PASSPHRASE}' > /tmp/askpass && chmod +x /tmp/askpass
# Start the authentication agent
- eval "$(ssh-agent -s)"
# Add the key to the authentication agent
- DISPLAY=":0.0" SSH_ASKPASS="/tmp/askpass" setsid ssh-add /tmp/git_deploy_key </dev/null


# Run the the validate script
# Temporarily also run the build script to make sure it works
# (will move this to the release step once that's implemented)
Expand Down
Binary file added git_deploy_key.enc
Binary file not shown.

0 comments on commit a941037

Please sign in to comment.