From 77c92e58fb0901a1ecceb3ac8f0cac10e597b370 Mon Sep 17 00:00:00 2001 From: m3ch_mania <2357245-m3ch_mania@users.noreply.gitlab.com> Date: Sun, 19 Jul 2020 02:05:39 +0000 Subject: [PATCH] Modify CI/CD settings to add a latest version publication --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 918e26e..1987d76 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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