From fdcdb6d9fa850380c5da9784bde6d571e21a9814 Mon Sep 17 00:00:00 2001 From: "J. Fronny" <6260391-JFronny@users.noreply.gitlab.com> Date: Sun, 11 Apr 2021 14:49:59 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..fb14d91 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file