From 14237db9d71f2c06e53320058cc1d1c91889cd55 Mon Sep 17 00:00:00 2001 From: jv Date: Fri, 18 Sep 2026 09:45:53 -0500 Subject: [PATCH] fix: use pip for PyYAML to avoid broken debian mirrors --- .gitea/workflows/homelab-main.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/homelab-main.yml b/.gitea/workflows/homelab-main.yml index 5023bb1..b4dfdc4 100644 --- a/.gitea/workflows/homelab-main.yml +++ b/.gitea/workflows/homelab-main.yml @@ -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