Permalink
Browse files

travis continuous deployment using deploy key

  • Loading branch information...
lefant committed Sep 11, 2014
1 parent a8aea7c commit 5ac6fdab9f59adf7cfba1d53a3a22cec654e9c6f
Showing with 17 additions and 3 deletions.
  1. +10 −2 .travis.yml
  2. +7 −0 gulp/tasks/deploy.js
  3. BIN id_rsa.enc
  4. +0 −1 package.json
@@ -1,3 +1,11 @@
language: node_js
node_js:
- 0.10

branches:
only:
- master
after_success:
- openssl aes-256-cbc -K $encrypted_ac7c2528d4b9_key -iv $encrypted_ac7c2528d4b9_iv -in id_rsa.enc -out ~/.ssh/id_rsa -d
- chmod 600 ~/.ssh/id_rsa
- git config --global user.name "ng-flickrdupfinder travis auto deploy"
- git config --global user.email "linzberger+travis@gmail.com"
- gulp deploy-travis
@@ -7,3 +7,10 @@ gulp.task('deploy', ['clean-build'], function () {
cacheDir: '../ng-flickrdupfinder_gh-pages'
}));
});

gulp.task('deploy-travis', ['clean-build'], function () {
gulp.src("./build/**/*")
.pipe(deploy({
remoteUrl: 'git@github.com:lefant/ng-flickrdupfinder.git'
}));
});
BIN +1.64 KB id_rsa.enc
Binary file not shown.
@@ -33,7 +33,6 @@
},
"scripts": {
"postinstall": "bower install",
"start": "http-server ./build -p 8777",
"test": "gulp test"
}
}

0 comments on commit 5ac6fda

Please sign in to comment.