fix: use golang:1.23-bookworm and install Node via binary
Homelab Main / validate (push) Failing after 32s Details
Homelab Main / deploy (push) Has been skipped Details

This commit is contained in:
jv 2026-09-18 14:00:41 -05:00
parent 08a599db59
commit 4120c41c9f
1 changed files with 12 additions and 22 deletions

View File

@ -9,21 +9,16 @@ name: Homelab Main
jobs: jobs:
validate: validate:
runs-on: k8s runs-on: k8s
container: ubuntu:latest container: golang:1.23-bookworm
steps: steps:
- name: Install Toolchain (Go, Node, Python) - name: Install Toolchain (Python, Node)
run: | run: |
set -e set -e
apt-get update # Install pip via bootstrap
apt-get install -y snapd python3-pip python3-yaml curl -sS https://bootstrap.pypa.io/get-pip.py | python3
# Ensure snapd socket is available (should be in container) python3 -m pip install PyYAML
systemctl start snapd || true # Install Node 18 via binary
# Install Go 1.23 via snap 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
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
- name: Check out repository - name: Check out repository
run: | run: |
set -e set -e
@ -31,26 +26,22 @@ jobs:
- name: Validate repository - name: Validate repository
run: | run: |
set -e set -e
export PATH="${PATH}:/snap/bin"
./jeannie validate ./jeannie validate
deploy: deploy:
runs-on: k8s runs-on: k8s
container: ubuntu:latest container: golang:1.23-bullseye
needs: needs:
- validate - validate
if: ${{ gitea.ref == 'refs/heads/main' }} if: ${{ gitea.ref == 'refs/heads/main' }}
steps: steps:
- name: Install Toolchain (Go, Node, Python) - name: Install Toolchain (Python, Node)
run: | run: |
set -e set -e
apt-get update curl -sS https://bootstrap.pypa.io/get-pip.py | python3
apt-get install -y snapd python3-pip python3-yaml python3 -m pip install PyYAML
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 - 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 - name: Check out repository
run: | run: |
set -e set -e
@ -156,7 +147,6 @@ jobs:
- name: Deploy main branch - name: Deploy main branch
run: | run: |
set -e set -e
export PATH="${PATH}:/snap/bin"
workspace_dir="${PWD}" workspace_dir="${PWD}"
deploy_dir="${HOMELAB_DEPLOY_DIR:-}" deploy_dir="${HOMELAB_DEPLOY_DIR:-}"