Skip to content

Commit b6c7c2d

Browse files
separate after_deploy.sh script
1 parent f7fd748 commit b6c7c2d

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ target
2929
out
3030
build
3131

32-
.travis/deploy_key
32+
.travis/deploy_rsa

.travis/after_deploy.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,17 @@ then
2929
mvn --settings .travis/mvnsettings.xml org.codehaus.mojo:versions-maven-plugin:2.3:set -DnewVersion=$new_snapshot
3030
mvn --settings .travis/mvnsettings.xml org.codehaus.mojo:versions-maven-plugin:2.3:commit
3131
# Save some useful information
32-
REPO=`git config remote.origin.url`
33-
SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:}
3432
git config user.name "Travis CI"
3533
git config user.email "[email protected]"
3634
git add pom.xml
37-
git commit -m "[Travis-CI] next snapshot version"
35+
git commit -m "[skip ci] [Travis-CI] next snapshot version via Travis build $TRAVIS_BUILD_NUMBER"
3836

39-
# Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc
40-
openssl aes-256-cbc -K $encrypted_7a1322f4b03c_key -iv $encrypted_7a1322f4b03c_iv -in .travis/deploy_key.enc -out .travis/deploy_key -d
41-
chmod 600 .travis/deploy_key
37+
# Get the deploy key by using Travis's stored variables to decrypt deploy_rsa.enc
38+
openssl aes-256-cbc -K $encrypted_7a1322f4b03c_key -iv $encrypted_7a1322f4b03c_iv -in .travis/deploy_rsa.enc -out .travis/deploy_rsa -d
39+
chmod 600 .travis/deploy_rsa
4240
eval `ssh-agent -s`
43-
ssh-add .travis/deploy_key
41+
ssh-add .travis/deploy_rsa
4442

4543
# Now that we're all set up, we can push.
46-
git push $SSH_REPO master
44+
git push upstream master
4745
fi

.travis/deploy_key.enc

-3.17 KB
Binary file not shown.

.travis/deploy_rsa.enc

3.17 KB
Binary file not shown.

0 commit comments

Comments
 (0)