fix: use pip for PyYAML to avoid broken debian mirrors
This commit is contained in:
parent
7f77c7d208
commit
14237db9d7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue