diff --git a/.gitlab-ci/test-update.sh b/.gitlab-ci/test-update.sh index fee4d3a..acbba17 100644 --- a/.gitlab-ci/test-update.sh +++ b/.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' diff --git a/.gitlab-ci/test.sh b/.gitlab-ci/test.sh index 5c69690..2be6285 100644 --- a/.gitlab-ci/test.sh +++ b/.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