mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-11-17 00:22:32 +01:00
Modify CI/CD settings to add a latest version publication
This commit is contained in:
parent
bba979c212
commit
77c92e58fb
@ -1,6 +1,7 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- publish
|
- publish
|
||||||
|
- publish_latest
|
||||||
- publish_docker
|
- publish_docker
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
@ -26,8 +27,22 @@ publish:
|
|||||||
name: "mangadex_at_home"
|
name: "mangadex_at_home"
|
||||||
paths:
|
paths:
|
||||||
- "*.jar"
|
- "*.jar"
|
||||||
|
- "mangadex_at_home-*.zip"
|
||||||
- settings.sample.json
|
- settings.sample.json
|
||||||
|
|
||||||
|
publish_latest:
|
||||||
|
image: alpine
|
||||||
|
stage: publish
|
||||||
|
before_script:
|
||||||
|
- apk update && apk add git
|
||||||
|
- export VERSION=`git describe --tags --dirty`
|
||||||
|
script:
|
||||||
|
- cp build/libs/mangadex_at_home-${VERSION}-all.jar build/libs/mangadex_at_home-latest-all.jar
|
||||||
|
artifacts:
|
||||||
|
name: "mangadex_at_home-latest"
|
||||||
|
paths:
|
||||||
|
- "build/libs/mangadex_at_home-latest-all.jar"
|
||||||
|
|
||||||
publish_docker:
|
publish_docker:
|
||||||
image: docker:git
|
image: docker:git
|
||||||
stage: publish
|
stage: publish
|
||||||
|
Loading…
Reference in New Issue
Block a user