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

Further updates

This commit is contained in:
carbotaniuman 2021-10-01 00:07:22 -05:00
parent a28f0c46c5
commit 4bb4a390c4

View file

@ -7,13 +7,11 @@ stages:
build:
image: openjdk:8
stage: build
script:
before_script:
- export VERSION="$CI_COMMIT_REF_NAME"
script:
- ./gradlew build
cache:
key: "mangadex_at_home-build"
paths:
- /root/.gradle
artifacts:
name: "mangadex_at_home"
paths:
@ -23,8 +21,9 @@ publish:
image: alpine/git
stage: publish
script:
before_script:
- export VERSION="$CI_COMMIT_REF_NAME"
script:
- cp build/libs/mangadex_at_home-${VERSION}-all.jar ./
- zip -r9 mangadex_at_home-${VERSION}.zip mangadex_at_home-${VERSION}-all.jar settings.sample.yaml
dependencies:
@ -46,10 +45,10 @@ publish_docker:
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin ${CI_REGISTRY}
- export VERSION="$CI_COMMIT_REF_NAME"
dependencies:
- build
script:
- export VERSION="$CI_COMMIT_REF_NAME"
- mv build/libs/mangadex_at_home-${VERSION}-all.jar build/libs/mangadex_at_home.jar
- docker build . -t ${CI_REGISTRY_IMAGE}:${VERSION}
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}