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