fix: use wget with retries for Go download
Homelab Main / validate (push) Successful in 1m29s Details
Homelab Main / deploy (push) Failing after 3m29s Details

This commit is contained in:
jv 2026-09-18 13:15:53 -05:00
parent a06f2dd588
commit 0b69a8553d
1 changed files with 10 additions and 8 deletions

View File

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