Skip to content

Commit

Permalink
add deploy_key.enc (encrypted!) and SSH_KEY_PASSPHRASE to .travis.yml…
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed May 25, 2018
1 parent 8663c1b commit b7c00b8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 26 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
package-lock.json
.DS_Store
.DS_Store
deploy_key
deploy_key
32 changes: 8 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
language: node_js
node_js:
- "node"
- node
env:
- MY_VAR=EverythignIsAwesome
before_script:
- echo $TRAVIS_PULL_REQUEST_BRANCH
- uname -a
- . branch.sh
- curl -s -o /dev/null -I -w "%{http_code}" https://ademo.app

- if [ $TRAVIS_PULL_REQUEST_BRANCH ]; then
echo "Git Branch name $TRAVIS_PULL_REQUEST_BRANCH";
reg="issue#";
issue="${TRAVIS_PULL_REQUEST_BRANCH}" | awk -F "${reg}" '{print $2}';
echo "issue $issue";

IFS=# read branchname issuenumber <<< "$TRAVIS_PULL_REQUEST_BRANCH";
echo "issue >> $issuenumber";
echo "name >> $branchname";

URL="https://${issuenumber}.ademo.app";
echo $URL;

STATUS=$(curl -s -o /dev/null -I -w "%{http_code}" $URL);
echo $STATUS;
fi
matrix:
- MY_VAR=EverythingIsAwesome
global:
secure: Yr/YfU7fIqgNoD+xKp+6IKPLC6Vwa9636wcQT+eLDF2zsWsmbU3dyLBNAux5h9itwSQcDMhMAQF183QdpF1nAQOKjYayjWye42CiZjxxmt5uo8T393JgJS+SQO3nxBOuf35moWu69ekhlMXeIpSHBJLQA0jcgWB+HeKb5I9shBmcEDikb2QWlpFI7LK53eu/l3aegzcNHWS28sQxN48THH8GkKDBNovVhMxxJvV5d+Ke3jHtGtHLD2sWEuiHWafM3cbV2XeIX0LyERYX5wnkxE9tZWrfY8H9P4UXBGLDJwkSJb18ASUCPGHFaRy1aY5b/WlIDK6l69tLTnA4e5PkmF50ElQFzS442GW2FL+Y8kBIvW6PTB1n+Fq/6d9aVTmA0cKYi6N+pdvEND6w+gtE10F9a6l/9PFbxj8b5/6M49nKyGeR/1fmcpluh3pFy6kPuEn9FM6KBIbqxi9q/h9F42Q+23Yr/gaVOLFsa45WUZtyQlNjNhKPwNyo/tyALvTt6sjhM711AtsH6geTdkKxlp+f/gG0j2NbJLK5ArLMF32WMjs3xF7oBAk4GNTZ1s+QnE7tFzJBPBXwYNL4Mzj5SZ/i1bPcRf3hjuiugwIMM+kVZwMZ8a4EYNQdHuPgOfBj4UvnBQg1XIaGBy/dCpXcuFJEemxEnLz5I3CvlHiHBiE=
before_install:
- openssl aes-256-cbc -K $encrypted_77965d5bdd4d_key -iv $encrypted_77965d5bdd4d_iv
-in deploy_key.enc -out ./deploy_key -d
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The purpose of this repo is to test deployment with the simplest possible node.j



# ACID Steps
# Automated Continuous Integration Deployment (ACID) Steps

## 1. Get Branch Issue Number

Expand Down
Binary file added deploy_key.enc
Binary file not shown.

0 comments on commit b7c00b8

Please sign in to comment.