Skip to content

Commit

Permalink
Updated .travis.yml [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
RomansBermans committed Nov 24, 2016
1 parent 0d91a1f commit 322ad40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ cache:
- node_modules

before_install:
- cd environment
- openssl aes-256-cbc -K $encrypted_54779b2bd156_key -iv $encrypted_54779b2bd156_iv -in private.tar.enc -out private.tar -d
- tar xvf private.tar
- cd ..
- openssl aes-256-cbc -K $encrypted_713c90b2403d_key -iv $encrypted_713c90b2403d_iv -in environment/private.tar.enc -out environment/private.tar -d
- mkdir environment/private && tar xvf environment/private.tar -C environment/private

before_script:
- if [[ "$TRAVIS_BRANCH" = "master" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Run a Node.js Cluster on Google Cloud Platform.
4. Rename the downloaded private key to `travis.server.prod.key.json` and save it in the `environment/private` folder
5. `gem install travis`
6. `travis login`
7. `cd environment && tar cvf private.tar private && travis encrypt-file private.tar --add && rm -rf private.tar && cd ..`
7. `tar cvf environment/private.tar -C environment/private . && travis encrypt-file environment/private.tar environment/private.tar.enc -f && rm -f environment/private.tar`

## Install
```
Expand Down
Binary file modified environment/private.tar.enc
Binary file not shown.

0 comments on commit 322ad40

Please sign in to comment.