fix: switch to ubuntu:latest for stable toolchain
Homelab Main / validate (push) Failing after 5m22s Details
Homelab Main / deploy (push) Has been skipped Details

This commit is contained in:
jv 2026-09-18 10:07:38 -05:00
parent 674219fe4f
commit a06f2dd588
1 changed files with 21 additions and 12 deletions

View File

@ -9,18 +9,20 @@ name: Homelab Main
jobs: jobs:
validate: validate:
runs-on: k8s runs-on: k8s
container: golang:1.23-bullseye container: ubuntu:latest
steps: steps:
- name: Install Node.js and Python deps - name: Install Toolchain (Go, Node, Python)
run: | run: |
set -e set -e
# Bypass broken Debian mirrors by installing pip via bootstrap apt-get update
curl -sS https://bootstrap.pypa.io/get-pip.py | python3 apt-get install -y curl git python3-pip python3-yaml
python3 -m pip install PyYAML
# 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 - 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 - name: Check out repository
run: | run: |
set -e set -e
@ -28,22 +30,28 @@ jobs:
- name: Validate repository - name: Validate repository
run: | run: |
set -e set -e
export PATH="${PATH}:/usr/local/go/bin"
./jeannie validate ./jeannie validate
deploy: deploy:
runs-on: k8s runs-on: k8s
container: golang:1.23-bullseye container: ubuntu:latest
needs: needs:
- validate - validate
if: ${{ gitea.ref == 'refs/heads/main' }} if: ${{ gitea.ref == 'refs/heads/main' }}
steps: steps:
- name: Install Node.js and Python deps - name: Install Toolchain (Go, Node, Python)
run: | run: |
set -e set -e
curl -sS https://bootstrap.pypa.io/get-pip.py | python3 apt-get update
python3 -m pip install PyYAML 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 - 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 - name: Check out repository
run: | run: |
set -e set -e
@ -149,6 +157,7 @@ jobs:
- name: Deploy main branch - name: Deploy main branch
run: | run: |
set -e set -e
export PATH="${PATH}:/usr/local/go/bin"
workspace_dir="${PWD}" workspace_dir="${PWD}"
deploy_dir="${HOMELAB_DEPLOY_DIR:-}" deploy_dir="${HOMELAB_DEPLOY_DIR:-}"