fix: install Go via snap to avoid download timeouts
This commit is contained in:
parent
0b69a8553d
commit
08a599db59
|
|
@ -15,14 +15,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y wget ca-certificates git python3-pip python3-yaml
|
apt-get install -y snapd python3-pip python3-yaml
|
||||||
|
# Ensure snapd socket is available (should be in container)
|
||||||
# Install Go 1.23 using wget with retries
|
systemctl start snapd || true
|
||||||
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
|
# Install Go 1.23 via snap
|
||||||
tar -C /usr/local -xzf /tmp/go1.23.0.linux-amd64.tar.gz
|
snap install go --classic --channel=1.23/stable
|
||||||
|
|
||||||
# Install Node 18
|
# Install Node 18
|
||||||
wget -qO- https://deb.nodesource.com/setup_18.x | bash -
|
apt-get install -y curl
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -31,7 +31,7 @@ jobs:
|
||||||
- name: Validate repository
|
- name: Validate repository
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
export PATH="${PATH}:/usr/local/go/bin"
|
export PATH="${PATH}:/snap/bin"
|
||||||
./jeannie validate
|
./jeannie validate
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
|
@ -45,14 +45,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y wget ca-certificates git python3-pip python3-yaml
|
apt-get install -y snapd python3-pip python3-yaml
|
||||||
|
systemctl start snapd || true
|
||||||
# Install Go 1.23 using wget with retries
|
snap install go --classic --channel=1.23/stable
|
||||||
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
|
apt-get install -y curl
|
||||||
tar -C /usr/local -xzf /tmp/go1.23.0.linux-amd64.tar.gz
|
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||||
|
|
||||||
# Install Node 18
|
|
||||||
wget -qO- https://deb.nodesource.com/setup_18.x | bash -
|
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -159,7 +156,7 @@ jobs:
|
||||||
- name: Deploy main branch
|
- name: Deploy main branch
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
export PATH="${PATH}:/usr/local/go/bin"
|
export PATH="${PATH}:/snap/bin"
|
||||||
|
|
||||||
workspace_dir="${PWD}"
|
workspace_dir="${PWD}"
|
||||||
deploy_dir="${HOMELAB_DEPLOY_DIR:-}"
|
deploy_dir="${HOMELAB_DEPLOY_DIR:-}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue