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