Add GitLab CI script
Fresh builds then can be used from other CI/CD scripts.
Change-Id: Ic4b115858353774407fa4772c97473dd64fbdb57
diff --git a/.gitignore b/.gitignore
index 613b6da..149acc4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,6 +21,7 @@
*\#
!.github
!.gitignore
+!.gitlab-ci.yml
# /src/main/resources/
/src/main/resources/server.properties
/src/main/resources/krill.properties
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..45dff3a
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,20 @@
+image: maven:3-eclipse-temurin-17-alpine
+
+stages:
+ - build
+
+cache:
+ paths:
+ - .m2/repository
+
+variables:
+ MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
+
+
+build:
+ stage: build
+ artifacts:
+ paths:
+ - target/Krill-Indexer.jar
+ script:
+ - mvn clean package