ci(builds.sr.ht): do some additional fixes on both config and build script

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
Andrei Jiroh Halili 2023-10-07 00:58:45 +08:00
parent a57c035e8e
commit 4551899097
No known key found for this signature in database
GPG key ID: 67BFC91B3DA12BE8

View file

@ -2,8 +2,10 @@ image: alpine/edge
environment: environment:
FF_ENABLE_COMMIT_DATA: "true" FF_ENABLE_COMMIT_DATA: "true"
FF_GENERATE_SOCIAL_CARDS: "true" FF_GENERATE_SOCIAL_CARDS: "true"
SKIP_VENV_SETUP: "true"
packages: packages:
- openssh-client - openssh-client
- rsync
- python3 - python3
- py3-pip - py3-pip
- py3-wheel - py3-wheel
@ -28,8 +30,12 @@ tasks:
- repo-sync: | - repo-sync: |
cd web cd web
- build: | - build: |
sudo rm /usr/lib/python3*/EXTERNALLY_MANAGED -rfv || true # https://www.jeffgeerling.com/blog/2023/how-solve-error-externally-managed-environment-when-installing-pip3
cd tildeweb && pip3 install -r requirements.txt --user sudo rm /usr/lib/python3*/EXTERNALLY-MANAGED -rfv
cd web
# our build script handles both the install and build stuff itself
export PATH="$PATH:$HOME/.local/bin" export PATH="$PATH:$HOME/.local/bin"
bash ./build.sh bash ./build.sh
- generate-archive: | - generate-archive: |