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