Browse Source

fix test install

merge-requests/1/head v1.10.6-p3
morph027 2 years ago
parent
commit
25a82ff3b0
No known key found for this signature in database
GPG Key ID: BF17A54BB873BE58
  1. 5
      .gitlab-ci/test-update.sh
  2. 3
      .gitlab-ci/test.sh

5
.gitlab-ci/test-update.sh

@ -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'

3
.gitlab-ci/test.sh

@ -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…
Cancel
Save