Run Gitea actions on host runner
This commit is contained in:
parent
c1452e943e
commit
00962fe68a
|
|
@ -8,16 +8,8 @@ name: Homelab Main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate:
|
validate:
|
||||||
runs-on: k8s
|
runs-on: homelab-debian
|
||||||
container: golang:1.23-bookworm
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Toolchain (Python, Node)
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
# Install PyYAML via apt (avoiding PEP 668)
|
|
||||||
apt-get update && apt-get install -y --no-install-recommends python3-yaml
|
|
||||||
# Install Node 18 via binary (using gzipped tarball to avoid xz dependency)
|
|
||||||
curl -fsSL https://nodejs.org/dist/v18.19.0/node-v18.19.0-linux-x64.tar.gz | tar -xz -C /usr/local --strip-components=1
|
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
|
@ -28,19 +20,11 @@ jobs:
|
||||||
./jeannie validate
|
./jeannie validate
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: k8s
|
runs-on: homelab-debian
|
||||||
container: golang:1.23-bookworm
|
|
||||||
needs:
|
needs:
|
||||||
- validate
|
- validate
|
||||||
if: ${{ gitea.ref == 'refs/heads/main' }}
|
if: ${{ gitea.ref == 'refs/heads/main' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install Toolchain (Python, Node)
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
# Install PyYAML via apt (avoiding PEP 668)
|
|
||||||
apt-get update && apt-get install -y --no-install-recommends python3-yaml
|
|
||||||
# Install Node 18 via binary (using gzipped tarball to avoid xz dependency)
|
|
||||||
curl -fsSL https://nodejs.org/dist/v18.19.0/node-v18.19.0-linux-x64.tar.gz | tar -xz -C /usr/local --strip-components=1
|
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
|
|
|
||||||
|
|
@ -4926,7 +4926,7 @@ install_gitea_runner() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
for package in ca-certificates curl git nodejs python3; do
|
for package in ca-certificates curl git nodejs python3 python3-yaml; do
|
||||||
if ! dpkg-query -W -f='${Status}' "$package" 2>/dev/null | grep -q "install ok installed"; then
|
if ! dpkg-query -W -f='${Status}' "$package" 2>/dev/null | grep -q "install ok installed"; then
|
||||||
missing_packages+=("$package")
|
missing_packages+=("$package")
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue