diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a80823d..59fa2a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,8 +15,8 @@ stages: stage: package image: golang:latest script: - - export VERSION=$(echo ${CI_COMMIT_TAG#*v} | cut -d'-' -f1) - - export PATCHLEVEL=$(echo ${CI_COMMIT_TAG} | cut -d'-' -f2) + - export VERSION=$(echo ${CI_COMMIT_TAG#*v} | cut -d'+' -f1) + - export PATCHLEVEL=$(echo ${CI_COMMIT_TAG} | cut -d'+' -f2) - apt-get -qq update - apt-get -qqy install ruby-dev ruby-ffi curl file - gem install specific_install @@ -35,9 +35,9 @@ stages: --architecture "${ARCH}" --input-type dir --output-type deb - --package "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_${ARCH}.deb" + --package "${CI_PROJECT_DIR}/gitea_${VERSION}+${PATCHLEVEL}_${ARCH}.deb" --name "${NAME}" - --version "${VERSION}-${PATCHLEVEL}" + --version "${VERSION}+${PATCHLEVEL}" --description "${DESCRIPTION}" --maintainer "Stefan Heitmüller " --url "${URL}"