pull using git instead of curl

This commit is contained in:
thelamer 2025-10-02 13:16:59 -04:00
parent d1202256b9
commit 0136afca71
No known key found for this signature in database
2 changed files with 6 additions and 14 deletions

View file

@ -47,17 +47,13 @@ RUN \
python3 \ python3 \
sqlite-libs && \ sqlite-libs && \
echo "**** install beets ****" && \ echo "**** install beets ****" && \
mkdir -p /tmp/beets && \
if [ -z ${BEETS_VERSION+x} ] ; then \ if [ -z ${BEETS_VERSION+x} ] ; then \
BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \ BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \
| jq -r .sha); \ | jq -r .sha); \
fi && \ fi && \
curl -o \ git clone https://github.com/beetbox/beets.git /tmp/beets && \
/tmp/beets.tar.gz -sL \ cd /tmp/beets && \
"https://github.com/beetbox/beets/archive/${BEETS_VERSION}.tar.gz" && \ git checkout -f "${BEETS_VERSION}" && \
tar xf \
/tmp/beets.tar.gz -C \
/tmp/beets --strip-components=1 && \
echo "**** compile mp3gain ****" && \ echo "**** compile mp3gain ****" && \
mkdir -p \ mkdir -p \
/tmp/mp3gain-src && \ /tmp/mp3gain-src && \

View file

@ -47,17 +47,13 @@ RUN \
python3 \ python3 \
sqlite-libs && \ sqlite-libs && \
echo "**** install beets ****" && \ echo "**** install beets ****" && \
mkdir -p /tmp/beets && \
if [ -z ${BEETS_VERSION+x} ] ; then \ if [ -z ${BEETS_VERSION+x} ] ; then \
BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \ BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \
| jq -r .sha); \ | jq -r .sha); \
fi && \ fi && \
curl -o \ git clone https://github.com/beetbox/beets.git /tmp/beets && \
/tmp/beets.tar.gz -sL \ cd /tmp/beets && \
"https://github.com/beetbox/beets/archive/${BEETS_VERSION}.tar.gz" && \ git checkout -f "${BEETS_VERSION}" && \
tar xf \
/tmp/beets.tar.gz -C \
/tmp/beets --strip-components=1 && \
echo "**** compile mp3gain ****" && \ echo "**** compile mp3gain ****" && \
mkdir -p \ mkdir -p \
/tmp/mp3gain-src && \ /tmp/mp3gain-src && \