1
0
mirror of https://gitlab.com/mangadex-pub/mangadex_at_home.git synced 2024-11-16 16:12:32 +01:00

Added rudimentary gitlab-ci integration

This commit is contained in:
Amos Ng 2020-06-23 08:24:20 +08:00
parent b4ab20a939
commit 537ef30e88
No known key found for this signature in database
GPG Key ID: 89086414F634D123
3 changed files with 33 additions and 0 deletions

32
.gitlab-ci.yml Executable file
View File

@ -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

View File

@ -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

0
gradlew vendored Normal file → Executable file
View File