Update .gitlab-ci.yml file
This commit is contained in:
parent
de4a25b900
commit
fdcdb6d9fa
21
.gitlab-ci.yml
Normal file
21
.gitlab-ci.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
image: gradle:alpine
|
||||||
|
|
||||||
|
variables:
|
||||||
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
||||||
|
|
||||||
|
build_test:
|
||||||
|
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
|
Loading…
Reference in New Issue
Block a user