Merge branch 'ft-constant-download-url' into 'master'

Modify CI/CD settings to add a latest version publication

See merge request mangadex-pub/mangadex_at_home!61
This commit is contained in:
carbotaniuman 2020-07-19 02:05:40 +00:00
commit 1371ab75f2

View file

@ -1,6 +1,7 @@
stages:
- build
- publish
- publish_latest
- publish_docker
cache:
@ -26,8 +27,22 @@ publish:
name: "mangadex_at_home"
paths:
- "*.jar"
- "mangadex_at_home-*.zip"
- 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:
image: docker:git
stage: publish