fix: use golang:1.23-bookworm and install Node via binary
This commit is contained in:
parent
08a599db59
commit
4120c41c9f
|
|
@ -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:-}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue