Skip to content
Snippets Groups Projects
Commit 0120be0b authored by dgelessus's avatar dgelessus
Browse files

Prepare automatic upload of release builds

parent 051afe49
No related branches found
No related tags found
No related merge requests found
Pipeline #111972 passed
...@@ -30,3 +30,26 @@ test: ...@@ -30,3 +30,26 @@ test:
paths: paths:
- build/distributions - build/distributions
- build/libs - build/libs
deploy:
stage: deploy
only:
- master@general/stups/prob2-jupyter-kernel
needs:
- test
image: alpine:3
before_script:
- apk update
- apk add lftp openssh-client
script:
- |
case build/libs/prob2-jupyter-kernel-*-all.jar in
(*-SNAPSHOT-all.jar)
# Don't upload SNAPSHOT builds
;;
(*-all.jar)
# Do upload release builds
LFTP_PASSWORD="${DEPLOY_PASSWORD}" lftp -c "set cmd:fail-exit true; set sftp:auto-confirm true; open --user ${DEPLOY_USERNAME} --env-password sftp://${DEPLOY_HOST}/${DEPLOY_REMOTE_BASEDIR}/downloads/prob2-jupyter/; mput build/libs/prob2-jupyter-kernel-*-all.jar"
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment