From 4120c41c9f678825370566a175208b81ed1e32ed Mon Sep 17 00:00:00 2001 From: jv Date: Fri, 18 Sep 2026 14:00:41 -0500 Subject: [PATCH] fix: use golang:1.23-bookworm and install Node via binary --- .gitea/workflows/homelab-main.yml | 34 +++++++++++-------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/.gitea/workflows/homelab-main.yml b/.gitea/workflows/homelab-main.yml index afdc218..61b1ed9 100644 --- a/.gitea/workflows/homelab-main.yml +++ b/.gitea/workflows/homelab-main.yml @@ -9,21 +9,16 @@ name: Homelab Main jobs: validate: runs-on: k8s - container: ubuntu:latest + container: golang:1.23-bookworm steps: - - name: Install Toolchain (Go, Node, Python) + - name: Install Toolchain (Python, Node) run: | set -e - apt-get update - 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 - apt-get install -y curl - curl -fsSL https://deb.nodesource.com/setup_18.x | bash - - apt-get install -y nodejs + # Install pip via bootstrap + curl -sS https://bootstrap.pypa.io/get-pip.py | python3 + python3 -m pip install PyYAML + # Install Node 18 via binary + curl -fsSL https://nodejs.org/dist/v18.19.0/node-v18.19.0-linux-x64.tar.xz | tar -xJ -C /usr/local --strip-components=1 - name: Check out repository run: | set -e @@ -31,26 +26,22 @@ jobs: - name: Validate repository run: | set -e - export PATH="${PATH}:/snap/bin" ./jeannie validate deploy: runs-on: k8s - container: ubuntu:latest + container: golang:1.23-bullseye needs: - validate if: ${{ gitea.ref == 'refs/heads/main' }} steps: - - name: Install Toolchain (Go, Node, Python) + - name: Install Toolchain (Python, Node) run: | set -e - apt-get update - 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 -sS https://bootstrap.pypa.io/get-pip.py | python3 + python3 -m pip install PyYAML curl -fsSL https://deb.nodesource.com/setup_18.x | bash - - apt-get install -y nodejs + apt-get update && apt-get install -y nodejs - name: Check out repository run: | set -e @@ -156,7 +147,6 @@ jobs: - name: Deploy main branch run: | set -e - export PATH="${PATH}:/snap/bin" workspace_dir="${PWD}" deploy_dir="${HOMELAB_DEPLOY_DIR:-}"