Skip to content

Instantly share code, notes, and snippets.

@vikalpj
Last active September 29, 2016 09:16
Show Gist options
  • Save vikalpj/579616c28795546663612fd283e72e04 to your computer and use it in GitHub Desktop.
Save vikalpj/579616c28795546663612fd283e72e04 to your computer and use it in GitHub Desktop.
1. Create a set of ssh keys using
ssh-keygen -t rsa -b 4096 -C "<email> "
Note: the keep the file name to be `id_rsa_nginfinite` if you change the file name then make sure you replace the references of id_rsa_nginfinite in the `make-bower-build.sh`
2. Go to https://github.com/sroze/ngInfiniteScroll-bower/settings/keys and add the .pub key here, Also make sure that this has Write access, so that travis should be able to push the commits
3. In the `ngInfiniteScroll` repo encrypt the private key
travis encrypt-file <private_key_name>
4. The step 3 will output some openssl command something like
openssl aes-256-cbc -K $encrypted_f635dc9b0bb1_key -iv $encrypted_f635dc9b0bb1_iv -in id_rsa_nginfinite.enc -out id_rsa_nginfinite -d
replace that in the `before install` section of travis.yml
5. Update travis.yml with the new Encryption label and commit authour email
env:
global:
- ENCRYPTION_LABEL: <encryption label>
- COMMIT_AUTHOR_EMAIL: <commit_author_email>
You can find the encryption label in the output of step 4, Here in `encrypted_f635dc9b0bb1_key`, f635dc9b0bb1 is your encryption label.
6. commit only .enc file in the `ngInfiniteScroll` Repo not the private keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment