22 lines
358 B
YAML
22 lines
358 B
YAML
image: gradle:alpine
|
|
|
|
variables:
|
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
|
|
|
before_script:
|
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
|
|
|
deploy:
|
|
stage: deploy
|
|
script:
|
|
- gradle --build-cache assemble
|
|
- cp build/libs/* ./
|
|
- rm *-dev.jar
|
|
- mv *.jar latest.jar
|
|
artifacts:
|
|
paths:
|
|
- build/libs
|
|
- latest.jar
|
|
only:
|
|
- master
|