Last active
January 8, 2019 11:43
-
-
Save seogi1004/ff2241ca69545e9ecc02137740df8e83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
Deploy: | |
extends: .Job_Only | |
image: maven:3.3.9 | |
stage: deploy | |
before_script: | |
- POM_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) | |
- apt-get update -qq && apt-get install -y -qq sshpass | |
script: | |
- ls -all ./dist | |
- sshpass -V | |
- export SSHPASS=$SSH_PASSWORD | |
- sshpass -e scp -r -oStrictHostKeyChecking=no -P51022 ./dist/vuejs-springboot-starter-$POM_VERSION.jar root@61.37.50.64:/opt/public | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment