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
|
- 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue