Run Gitea actions on host runner
This commit is contained in:
parent
c1452e943e
commit
00962fe68a
|
|
@ -8,16 +8,8 @@ name: Homelab Main
|
|||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: k8s
|
||||
container: golang:1.23-bookworm
|
||||
runs-on: homelab-debian
|
||||
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
|
||||
run: |
|
||||
set -e
|
||||
|
|
@ -28,19 +20,11 @@ jobs:
|
|||
./jeannie validate
|
||||
|
||||
deploy:
|
||||
runs-on: k8s
|
||||
container: golang:1.23-bookworm
|
||||
runs-on: homelab-debian
|
||||
needs:
|
||||
- validate
|
||||
if: ${{ gitea.ref == 'refs/heads/main' }}
|
||||
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
|
||||
run: |
|
||||
set -e
|
||||
|
|
|
|||
|
|
@ -4926,7 +4926,7 @@ install_gitea_runner() {
|
|||
;;
|
||||
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
|
||||
missing_packages+=("$package")
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue