Skip to content

aaronj1335/shipit

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
 
 
img
 
 
js
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

don't just build, ship

Build Status

these are the slides i used for my talk at jquery conference austin. you can view them here.

i've posted this for reference, but it also serves as an example of the subject matter of my talk: tools that help you ship.

creating a secure github token

one of the ways you can automate the shipping process is deploying your app on every successful travis build. in order to do so, you need to give travis the means to push to your repository. a relatively secure, convenient way to do that is by including an encrypted github api token in your .travis.yml:

  1. create a github api token

  2. encrypt it using travis's secure variables:

npm install -g travis-encrypt
travis-encrypt --repo gh-user-name/gh-repo-name --key GH_TOKEN --value <github token>
> fsqKj4hKmeB8T28xIkrYZqwM6i9CMvOnUUGXcx...
  1. add that to your .travis.yml under the env.global list:
env:
  global:
     - secure: fsqKj4hKmeB8T28xIkrYZqwM6i9CMvOnUUGXcx...

now in your travis build, you can use the GH_TOKEN environment variable to push to your repo:

git clone https://${GH_TOKEN}@github.com/gh-user-name/gh-repo-name.git

image credits

About

don't just build, ship

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published