fix: use wget with retries for Go download
This commit is contained in:
parent
a06f2dd588
commit
0b69a8553d
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue