pip3 install alpine
cicd / ci (push) Successful in 10m46s Details

main
Bel LaPointe 2025-05-25 12:59:13 -06:00
parent 932e396341
commit 26864f64d4
1 changed files with 14 additions and 2 deletions

View File

@ -4,7 +4,11 @@ main() {
set -eo pipefail
if ! which pip3; then
apt install -y pip3
if which apk; then
apk update && apk add py3-pip
else
apt install -y pip3
fi
fi
cd_work_d
@ -15,7 +19,15 @@ main() {
head_ts="$(cd "$ytdlp2STRM_d"; git log -n 1 --format=%as)"
echo head_ts=$head_ts
yt_dlp_latest="$(pip3 index versions yt-dlp | grep LATEST | awk '{print $NF}')"
yt_dlp_latest="$(
pip3 index versions yt-dlp \
| grep '^Available.versions:' \
| tr ' ' '\n' \
| grep -v 'Available.versions:' \
| sort -n \
| tail -n 1 \
| tr -d ','
)"
echo yt_dlp_latest=$yt_dlp_latest
img=registry-app.inhome.blapointe.com:5001/bel/ytdlp2strm