Skip to content

Instantly share code, notes, and snippets.

@seogi1004
Last active January 8, 2019 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seogi1004/ff2241ca69545e9ecc02137740df8e83 to your computer and use it in GitHub Desktop.
Save seogi1004/ff2241ca69545e9ecc02137740df8e83 to your computer and use it in GitHub Desktop.
...
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