fix: switch to ubuntu:latest for stable toolchain
This commit is contained in:
parent
674219fe4f
commit
a06f2dd588
|
|
@ -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:-}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue