From 5922f207f52a60b3b923b85e8a77e033eafb36dd Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Fri, 21 Jan 2022 18:12:52 +0300 Subject: [PATCH] CICD --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d9d7f6a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: 3.8.4-openjdk-11-slim +variables: + MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository" + +stages: + - build + - deploy + +build: + stage: build + only: + - /^release-.*$/ + except: + - branches + script: + - 'mvn --settings $MAVEN_SETTINGS -U -P ossrh -P release clean deploy' + artifacts: + paths: + - backend/target/*.jar \ No newline at end of file