From a06f2dd5885afb57d6c299c552844941edd2ddae Mon Sep 17 00:00:00 2001 From: jv Date: Fri, 18 Sep 2026 10:07:38 -0500 Subject: [PATCH] fix: switch to ubuntu:latest for stable toolchain --- .gitea/workflows/homelab-main.yml | 33 ++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/homelab-main.yml b/.gitea/workflows/homelab-main.yml index 71ee474..41c653d 100644 --- a/.gitea/workflows/homelab-main.yml +++ b/.gitea/workflows/homelab-main.yml @@ -9,18 +9,20 @@ name: Homelab Main jobs: validate: runs-on: k8s - container: golang:1.23-bullseye + container: ubuntu:latest steps: - - name: Install Node.js and Python deps + - name: Install Toolchain (Go, Node, Python) run: | set -e - # Bypass broken Debian mirrors by installing pip via bootstrap - curl -sS https://bootstrap.pypa.io/get-pip.py | python3 - python3 -m pip install PyYAML + apt-get update + apt-get install -y curl git python3-pip python3-yaml - # Install Node.js via NodeSource + # Install Go 1.23 + curl -fsSL https://go.dev/dl/go1.23.0.linux-amd64.tar.gz | tar -C /usr/local -xzf - + + # Install Node 18 curl -fsSL https://deb.nodesource.com/setup_18.x | bash - - apt-get install -y --no-install-recommends nodejs + apt-get install -y nodejs - name: Check out repository run: | set -e @@ -28,22 +30,28 @@ jobs: - name: Validate repository run: | set -e + export PATH="${PATH}:/usr/local/go/bin" ./jeannie validate deploy: runs-on: k8s - container: golang:1.23-bullseye + container: ubuntu:latest needs: - validate if: ${{ gitea.ref == 'refs/heads/main' }} steps: - - name: Install Node.js and Python deps + - name: Install Toolchain (Go, Node, Python) run: | set -e - curl -sS https://bootstrap.pypa.io/get-pip.py | python3 - python3 -m pip install PyYAML + apt-get update + apt-get install -y curl 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 Node 18 curl -fsSL https://deb.nodesource.com/setup_18.x | bash - - apt-get install -y --no-install-recommends nodejs + apt-get install -y nodejs - name: Check out repository run: | set -e @@ -149,6 +157,7 @@ jobs: - name: Deploy main branch run: | set -e + export PATH="${PATH}:/usr/local/go/bin" workspace_dir="${PWD}" deploy_dir="${HOMELAB_DEPLOY_DIR:-}"