Skip to content

Commit

Permalink
Merge pull request #26 from zvercodebender/master
Browse files Browse the repository at this point in the history
change build
  • Loading branch information
Rick Broker authored Feb 7, 2020
2 parents 7b5e021 + d14c99a commit d477026
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@ deploy:
on:
tags: true
repo: xebialabs-community/xlr-bitbucket-plugin
before_install:
- openssl aes-256-cbc -K $encrypted_e5bd312d25bf_key -iv $encrypted_e5bd312d25bf_iv
-in deploy_key.enc -out /tmp/deploy_key -d
- eval "$(ssh-agent -s)"
- echo -e "Host $DIST_HOST\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- chmod 600 /tmp/deploy_key
- ssh-add /tmp/deploy_key
- provider: script
skip_cleanup: true
script: rsync --update -raz -i $TRAVIS_BUILD_DIR/build/libs/*.jar $DIST_USER@$DIST_HOST:$DIST_PATH/${TRAVIS_REPO_SLUG#*/}/
script: bash deploy.sh
on:
tags: true
repo: xebialabs-community/xlr-bitbucket-plugin
Expand Down
6 changes: 6 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
openssl aes-256-cbc -K $encrypted_e5bd312d25bf_key -iv $encrypted_e5bd312d25bf_iv -in deploy_key.enc -out /tmp/deploy_key -d
eval "$(ssh-agent -s)"
echo -e "Host $DIST_HOST\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
chmod 600 /tmp/deploy_key
ssh-add /tmp/deploy_key
rsync --update -raz -i $TRAVIS_BUILD_DIR/build/libs/*.jar $DIST_USER@$DIST_HOST:$DIST_PATH/${TRAVIS_REPO_SLUG#*/}/

0 comments on commit d477026

Please sign in to comment.