1
0
Fork 1
mirror of https://gitlab.com/mangadex-pub/mangadex_at_home.git synced 2024-01-19 02:48:37 +00:00

Ci update

This commit is contained in:
carbotaniuman 2021-10-01 06:10:07 +00:00
parent 7498ed0a4d
commit 7dc9c21a8b

View file

@ -1,20 +1,16 @@
stages:
- build
- publish
- publish_latest
- publish_docker
build:
image: openjdk:8
stage: build
script:
before_script:
- export VERSION="$CI_COMMIT_REF_NAME"
script:
- ./gradlew build
- "ls -lah build/libs"
cache:
key: "mangadex_at_home-build"
paths:
- /root/.gradle
artifacts:
name: "mangadex_at_home"
paths:
@ -23,8 +19,9 @@ build:
publish:
image: alpine
stage: publish
before_script:
- apk update && apk add git zip
- apk update && apk add zip
- export VERSION="$CI_COMMIT_REF_NAME"
script:
- cp build/libs/mangadex_at_home-${VERSION}-all.jar ./
@ -39,12 +36,13 @@ publish:
- "settings.sample.yaml"
publish_docker:
image: docker:git
image: docker:20.10.8
services:
- docker:20.10.8-dind
stage: publish
only:
- tags
services:
- docker:dind
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin ${CI_REGISTRY}
- export VERSION="$CI_COMMIT_REF_NAME"