1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 16:13:44 +00:00

fix test install w/ new version scheme

Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
This commit is contained in:
morph027 2023-05-27 12:26:07 +02:00
parent 6e8272fe38
commit c2f3770f98
No known key found for this signature in database
GPG Key ID: BF17A54BB873BE58
3 changed files with 4 additions and 4 deletions

View File

@ -2,5 +2,5 @@


. "${CI_PROJECT_DIR}/.gitlab-ci/test.sh" . "${CI_PROJECT_DIR}/.gitlab-ci/test.sh"


apt-get -y install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb" apt-get -y install "${CI_PROJECT_DIR}/gitea_${VERSION}+${PATCHLEVEL}_amd64.deb"
start_gitea start_gitea

View File

@ -9,6 +9,6 @@ apt-get -y install gitea
cp "/${CI_PROJECT_DIR}/.gitlab-ci/app.ini" /etc/gitea/app.ini cp "/${CI_PROJECT_DIR}/.gitlab-ci/app.ini" /etc/gitea/app.ini
start_gitea start_gitea
curl -s localhost:3000/api/v1/version | jq -e '.version' curl -s localhost:3000/api/v1/version | jq -e '.version'
apt-get -y --allow-downgrades install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb" apt-get -y --allow-downgrades install "${CI_PROJECT_DIR}/gitea_${VERSION}+${PATCHLEVEL}_amd64.deb"
restart_gitea restart_gitea
curl -s localhost:3000/api/v1/version | jq -e '.version' curl -s localhost:3000/api/v1/version | jq -e '.version'

View File

@ -2,8 +2,8 @@


set -e set -e


VERSION=$(echo "${CI_COMMIT_TAG#*v}" | cut -d'-' -f1) VERSION=$(echo "${CI_COMMIT_TAG#*v}" | cut -d'+' -f1)
PATCHLEVEL=$(echo "${CI_COMMIT_TAG}" | cut -d'-' -f2) PATCHLEVEL=$(echo "${CI_COMMIT_TAG}" | cut -d'+' -f2)
export VERSION PATCHLEVEL export VERSION PATCHLEVEL


start_gitea() { start_gitea() {