From 537ef30e8860cc53eb66a42ec59ac9286e5a93ad Mon Sep 17 00:00:00 2001 From: Amos Ng Date: Tue, 23 Jun 2020 08:24:20 +0800 Subject: [PATCH] Added rudimentary gitlab-ci integration --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ CHANGELOG.md | 1 + gradlew | 0 3 files changed, 33 insertions(+) create mode 100755 .gitlab-ci.yml mode change 100644 => 100755 gradlew diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100755 index 0000000..c51bbf3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +image: "alpine" +stages: + - build + - publish + +cache: + paths: + - build/libs/ + +build: + image: openjdk:8 + stage: build + script: + - ./gradlew build + +publish: + image: alpine + stage: publish + only: + - tags + before_script: + - apk update + - apk add git zip + script: + - export VERSION=`git describe --tags --dirty` + - cp build/libs/mangadex_at_home-${VERSION}-all.jar ./ + - zip -r9 mangadex_at_home-${VERSION}.zip mangadex_at_home-${VERSION}-all.jar settings.sample.json + artifacts: + name: "mangadex_at_home-${CI_COMMIT_TAG}" + paths: + - "*.jar" + - settings.sample.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 17c60b1..16b0211 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added +- [2020-06-23] Added Gitlab CI integration by [@lflare]. ### Changed diff --git a/gradlew b/gradlew old mode 100644 new mode 100755