From dd8fa3d25c0163c23417f95b9dc80d7e7a4761c6 Mon Sep 17 00:00:00 2001 From: casjay Date: Thu, 4 Jun 2026 17:30:26 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add=20retry=20logic=20to=20gitea?= =?UTF-8?q?=20and=20act=5Frunner=20downloads=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gitea.com was returning 502 Bad Gateway from the build host, causing the act_runner download to fail immediately with no retry. Added --retry 5 --retry-delay 10 --retry-all-errors to both download curl calls so transient gateway errors don't abort the build. - rootfs/root/docker/setup/05-custom.sh: add retry flags to gitea and act_runner curl download calls rootfs/root/docker/setup/05-custom.sh --- rootfs/root/docker/setup/05-custom.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/root/docker/setup/05-custom.sh b/rootfs/root/docker/setup/05-custom.sh index 06c06b0..c2104cc 100755 --- a/rootfs/root/docker/setup/05-custom.sh +++ b/rootfs/root/docker/setup/05-custom.sh @@ -61,7 +61,7 @@ GITEA_URL="https://github.com/go-gitea/gitea/releases/download/v${GITEA_VERSION} # - - - - - - - - - - - - - - - - - - - - - - - - - # Predefined actions echo "Downloading gitea from $GITEA_URL" -if curl -4 -q -LSsf "$GITEA_URL" -o "/tmp/gitea.$$"; then +if curl -4 -q -LSsf --retry 5 --retry-delay 10 --retry-all-errors "$GITEA_URL" -o "/tmp/gitea.$$"; then mv -f "/tmp/gitea.$$" "$GITEA_BIN_FILE" echo "gitea has been installed to: $GITEA_BIN_FILE" chmod +x "$GITEA_BIN_FILE" @@ -78,7 +78,7 @@ echo "Downloading act_runner from $ACT_URL" if [ -z "$ACT_URL" ]; then echo "Failed to resolve act_runner download URL" >&2 exitCode=$((exitCode + 1)) -elif curl -q -LSsf "$ACT_URL" -o "/tmp/act_runner.$$"; then +elif curl -q -LSsf --retry 5 --retry-delay 10 --retry-all-errors "$ACT_URL" -o "/tmp/act_runner.$$"; then mv -f "/tmp/act_runner.$$" "$ACT_BIN_FILE" echo "act_runner has been installed to: $ACT_BIN_FILE" chmod +x "$ACT_BIN_FILE"