1
0
mirror of https://gitlab.com/packaging/gitea synced 2025-01-05 08:53:23 +00:00

update version scheme

Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
This commit is contained in:
morph027 2023-05-27 07:12:41 +02:00
parent 1ed73b2f19
commit 6e8272fe38
No known key found for this signature in database
GPG Key ID: BF17A54BB873BE58

View File

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