fix: use pip for PyYAML to avoid broken debian mirrors
Homelab Main / validate (push) Failing after 1s Details
Homelab Main / deploy (push) Has been skipped Details

This commit is contained in:
jv 2026-09-18 09:45:53 -05:00
parent 7f77c7d208
commit 14237db9d7
1 changed files with 8 additions and 4 deletions

View File

@ -14,8 +14,13 @@ jobs:
- name: Install Node.js and Python deps
run: |
set -e
apt-get update
apt-get install -y --no-install-recommends curl python3-yaml
# We avoid apt-get update/install for tools already in the image or easily fetched
# Python3 and curl are already in golang:1.23-bullseye.
# We only need python3-yaml and nodejs.
# To avoid broken debian-security mirrors, we use pip for yaml and binary for node.
pip3 install PyYAML
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -y --no-install-recommends nodejs
- name: Check out repository
@ -37,8 +42,7 @@ jobs:
- name: Install Node.js and Python deps
run: |
set -e
apt-get update
apt-get install -y --no-install-recommends curl python3-yaml
pip3 install PyYAML
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -y --no-install-recommends nodejs
- name: Check out repository