From 0b69a8553de1119bf29c8ef23b511724698a66db Mon Sep 17 00:00:00 2001 From: jv Date: Fri, 18 Sep 2026 13:15:53 -0500 Subject: [PATCH] fix: use wget with retries for Go download --- .gitea/workflows/homelab-main.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/homelab-main.yml b/.gitea/workflows/homelab-main.yml index 41c653d..20031c8 100644 --- a/.gitea/workflows/homelab-main.yml +++ b/.gitea/workflows/homelab-main.yml @@ -15,13 +15,14 @@ jobs: run: | set -e apt-get update - apt-get install -y curl git python3-pip python3-yaml + apt-get install -y wget ca-certificates git python3-pip python3-yaml - # Install Go 1.23 - curl -fsSL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar -C /usr/local -xzf - + # Install Go 1.23 using wget with retries + wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://go.dev/dl/go1.23.0.linux-amd64.tar.gz -O /tmp/go1.23.0.linux-amd64.tar.gz + tar -C /usr/local -xzf /tmp/go1.23.0.linux-amd64.tar.gz # Install Node 18 - curl -fsSL https://deb.nodesource.com/setup_18.x | bash - + wget -qO- https://deb.nodesource.com/setup_18.x | bash - apt-get install -y nodejs - name: Check out repository run: | @@ -44,13 +45,14 @@ jobs: run: | set -e apt-get update - apt-get install -y curl git python3-pip python3-yaml + apt-get install -y wget ca-certificates git python3-pip python3-yaml - # Install Go 1.23 - curl -fsSL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar -C /usr/local -xzf - + # Install Go 1.23 using wget with retries + wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://go.dev/dl/go1.23.0.linux-amd64.tar.gz -O /tmp/go1.23.0.linux-amd64.tar.gz + tar -C /usr/local -xzf /tmp/go1.23.0.linux-amd64.tar.gz # Install Node 18 - curl -fsSL https://deb.nodesource.com/setup_18.x | bash - + wget -qO- https://deb.nodesource.com/setup_18.x | bash - apt-get install -y nodejs - name: Check out repository run: |