fix: install pip via bootstrap to bypass broken debian mirrors
Homelab Main / validate (push) Failing after 2s Details
Homelab Main / deploy (push) Has been skipped Details

This commit is contained in:
jv 2026-09-18 10:01:35 -05:00
parent 4f8ba24f06
commit 674219fe4f
1 changed files with 7 additions and 7 deletions

View File

@ -14,11 +14,11 @@ jobs:
- name: Install Node.js and Python deps - name: Install Node.js and Python deps
run: | run: |
set -e set -e
apt-get update # Bypass broken Debian mirrors by installing pip via bootstrap
# Install python3-pip to get pip, and python3-yaml from apt since we are already updating curl -sS https://bootstrap.pypa.io/get-pip.py | python3
# If debian-security is broken, we use --fix-missing or try to ignore failures for non-essential python3 -m pip install PyYAML
apt-get install -y --no-install-recommends python3-pip python3-yaml
# Install Node.js via NodeSource
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -y --no-install-recommends nodejs apt-get install -y --no-install-recommends nodejs
- name: Check out repository - name: Check out repository
@ -40,8 +40,8 @@ jobs:
- name: Install Node.js and Python deps - name: Install Node.js and Python deps
run: | run: |
set -e set -e
apt-get update curl -sS https://bootstrap.pypa.io/get-pip.py | python3
apt-get install -y --no-install-recommends python3-pip python3-yaml python3 -m pip install PyYAML
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -y --no-install-recommends nodejs apt-get install -y --no-install-recommends nodejs
- name: Check out repository - name: Check out repository
@ -212,7 +212,7 @@ jobs:
"${deploy_dir}/jeannie" "${action_command}" "${deploy_dir}/jeannie" "${action_command}"
;; ;;
*) *)
echo "Unsupported HOMELAB_ACTION_COMMAND: ${action_command}" >&2 echo "Unsupported HOMELAB_ACTION_COMMAND: ${action_command}"
exit 1 exit 1
;; ;;
esac esac