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:
parent
6e8272fe38
commit
c2f3770f98
@ -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
|
||||||
|
@ -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'
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user