Skip to content

Commit 85543e8

Browse files
committed
Use credential store and rebase first
Do a rebase first to ensure that we can push fast-forward. Use credential store instead of perstonal authentication token in the environment variable. This reduces the exposure of the token in logs. The credential store file is extracted directly to the home folder.
1 parent 31a1b31 commit 85543e8

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.git-credentials.enc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[3�!$���R����ʝon{��]���B9Ŵ�jb�kۍ|�I&T��=a/MO�4�)C_-���S��}�=�u)OŸ�?J�y����s2o,��Y�)

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ jspm_packages
3737
.node_repl_history
3838

3939
semantic/dist/
40+
.git-credentials

.travis.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ language: node_js
22
node_js: node
33
addons:
44
ssh_known_hosts: github.com
5+
before_install:
6+
- openssl aes-256-cbc -K $encrypted_8a3d438a572c_key -iv $encrypted_8a3d438a572c_iv
7+
-in .git-credentials.enc -out $HOME/.git-credentials -d
8+
- git config --global credential.helper store
9+
- git config --global user.email "[email protected]"
10+
- git config --global user.name "Travis Service Account"
511
after_success:
612
- cd dist/
7-
- git config user.email "[email protected]"
8-
- git config user.name "Travis Service Account"
913
- git add -A
1014
- git commit -a -m "Travis build"
11-
- git remote rm origin
12-
- git remote add origin https://trajano:[email protected]/trajano/trajano-portfolio
15+
- git rebase origin/gh-pages
1316
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git push origin gh-pages; fi
14-
env:
15-
global:
16-
secure: M4ea74aYAPHIdV4sduRSqaZadvl/JorE5osg4ERDH0aA1tIz3GI4QoS/W70YFFTcZ3u/yM6mWkjMfQ7iv7neRRWV/SI3rUCGB6TfDY9o4oSou8AObA/IqMPUih1B3/dXk8UoMBS7rKjNH8KgdcGNC0+WYqW+6LDDNFV4utES3khNtMCw1slLNtQnsve78jsLfeE5QLLrOw63PxzT/gh8xRpvN3elwcMLe2d9oL1MMfpCMqqREhkqYL6tbYzY/jo13Iu+wNZBzM0qP3btoKSjOsfpnx4UfdqgvC1PxVDaqPzPVzC471p1desLCUJOTx5s5WfS6FehBS7/GEzW+qRgwI7NDeGNAKcUYpACLD9ZPW5+6qVaRGL7mvz8kJ9uyirw77aFU1B2F0nG+1s8EDvlJD1bbCn7PEDQbKcSfbZRwCeZxOjXyGaBXhCUJJlzUR0NjWHU1zycyjrQEzyGSsUVvbmbGssHJ/7ypqi+dRocYE0GMBtSM/7zA0lA13dFPgOU2HDpxZp4tf8ccFF7bdFkDFfniWucHyKcbJQGTEP2HuDlOw5dh9fRnNFfNFHIPohmTC0TkKC8nHG/ZBPTu8Smv30/sbk7+UVRyzx8wqJmAU8x5QveT2yvQh/xhLTkNzh8UW+g8auzMO6lpmSdzSOecxNrhM6jyLWx0LUi2JYLz8c=

0 commit comments

Comments
 (0)