From d0d02306ab799d73b0538adc05194e938d1851db Mon Sep 17 00:00:00 2001 From: morph027 Date: Tue, 13 May 2025 09:38:27 +0200 Subject: [PATCH] skip update test when previous version is unavailable Signed-off-by: morph027 --- .gitlab-ci/test-update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/test-update.sh b/.gitlab-ci/test-update.sh index 3f166f3..98cc11d 100755 --- a/.gitlab-ci/test-update.sh +++ b/.gitlab-ci/test-update.sh @@ -4,7 +4,9 @@ curl -sL -o /etc/apt/trusted.gpg.d/morph027-gitea.asc https://packaging.gitlab.io/gitea/gpg.key echo "deb [arch=amd64] https://packaging.gitlab.io/gitea gitea main" > /etc/apt/sources.list.d/morph027-gitea.list -apt-get update +if ! apt-get update; then + exit 0 +fi apt-get -y install gitea install -o gitea -g gitea -m 644 "/${CI_PROJECT_DIR}/.gitlab-ci/app.ini" /etc/gitea/app.ini start_gitea