Merge branch 'ci-update' into 'master'

Ci update

See merge request mangadex-pub/mangadex_at_home!94
This commit is contained in:
carbotaniuman 2021-10-01 06:10:07 +00:00
commit baecff51be
1 changed files with 9 additions and 11 deletions

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"