diff --git a/.gitea/workflows/homelab-main.yml b/.gitea/workflows/homelab-main.yml index 20031c8..afdc218 100644 --- a/.gitea/workflows/homelab-main.yml +++ b/.gitea/workflows/homelab-main.yml @@ -15,14 +15,14 @@ jobs: run: | set -e apt-get update - apt-get install -y wget ca-certificates git python3-pip python3-yaml - - # 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 - + apt-get install -y snapd python3-pip python3-yaml + # Ensure snapd socket is available (should be in container) + systemctl start snapd || true + # Install Go 1.23 via snap + snap install go --classic --channel=1.23/stable # 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 - name: Check out repository run: | @@ -31,7 +31,7 @@ jobs: - name: Validate repository run: | set -e - export PATH="${PATH}:/usr/local/go/bin" + export PATH="${PATH}:/snap/bin" ./jeannie validate deploy: @@ -45,14 +45,11 @@ jobs: run: | set -e apt-get update - apt-get install -y wget ca-certificates git python3-pip python3-yaml - - # 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 - wget -qO- https://deb.nodesource.com/setup_18.x | bash - + apt-get install -y snapd python3-pip python3-yaml + systemctl start snapd || true + snap install go --classic --channel=1.23/stable + apt-get install -y curl + curl -fsSL https://deb.nodesource.com/setup_18.x | bash - apt-get install -y nodejs - name: Check out repository run: | @@ -159,7 +156,7 @@ jobs: - name: Deploy main branch run: | set -e - export PATH="${PATH}:/usr/local/go/bin" + export PATH="${PATH}:/snap/bin" workspace_dir="${PWD}" deploy_dir="${HOMELAB_DEPLOY_DIR:-}"