mirror of
https://gitlab.com/packaging/gitea
synced 2024-12-18 08:03:29 +00:00
fix test install
This commit is contained in:
parent
e0ba99af5a
commit
25a82ff3b0
@ -6,8 +6,9 @@ curl -sL -o /etc/apt/trusted.gpg.d/morph027-gitea.asc https://packaging.gitlab.i
|
||||
echo "deb [arch=amd64] https://packaging.gitlab.io/gitea gitea main" > /etc/apt/sources.list.d/morph027-gitea.list
|
||||
apt-get update
|
||||
apt-get -y install gitea
|
||||
tar -C / -xzf "/${CI_PROJECT_DIR}/.gitlab-ci/data.tgz"
|
||||
chown -R gitea: /var/lib/gitea /etc/gitea
|
||||
cp "/${CI_PROJECT_DIR}/.gitlab-ci/app.ini" /etc/gitea/app.ini
|
||||
start_gitea
|
||||
curl -s localhost:3000/api/v1/version | jq -e '.version'
|
||||
apt-get -y --allow-downgrades install "${CI_PROJECT_DIR}/gitea_${VERSION}-${PATCHLEVEL}_amd64.deb"
|
||||
restart_gitea
|
||||
curl -s localhost:3000/api/v1/version | jq -e '.version'
|
||||
|
@ -12,7 +12,6 @@ start_gitea() {
|
||||
if ! systemctl is-active gitea; then
|
||||
journalctl -lu gitea --no-pager
|
||||
fi
|
||||
curl -s localhost:3000/api/v1/version | jq -e '.version'
|
||||
}
|
||||
|
||||
restart_gitea() {
|
||||
@ -20,5 +19,7 @@ restart_gitea() {
|
||||
start_gitea
|
||||
}
|
||||
|
||||
sleep 5
|
||||
|
||||
apt-get update
|
||||
apt-get -y install curl jq
|
||||
|
Loading…
Reference in New Issue
Block a user