Merge pull request #266 from linuxserver/unstable-fix-refs
FIx commit sha fetch for clashing tags
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ RUN \
|
||||
make check && \
|
||||
make install && \
|
||||
echo "**** Patch Sab commit into version.py ****" && \
|
||||
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/matching-refs/tags/${SABNZBD_VERSION}" | jq -r '.[].object.sha') && \
|
||||
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/ref/tags/${SABNZBD_VERSION}" | jq -r '.object.sha') && \
|
||||
sed -i "s/__baseline__ .*/__baseline__ = \"${SAB_COMMIT_SHA}\"/" /app/sabnzbd/sabnzbd/version.py && \
|
||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||
echo "**** cleanup ****" && \
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ RUN \
|
||||
make check && \
|
||||
make install && \
|
||||
echo "**** Patch Sab commit into version.py ****" && \
|
||||
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/matching-refs/tags/${SABNZBD_VERSION}" | jq -r '.[].object.sha') && \
|
||||
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/ref/tags/${SABNZBD_VERSION}" | jq -r '.object.sha') && \
|
||||
sed -i "s/__baseline__ .*/__baseline__ = \"${SAB_COMMIT_SHA}\"/" /app/sabnzbd/sabnzbd/version.py && \
|
||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||
echo "**** cleanup ****" && \
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ RUN \
|
||||
make check && \
|
||||
make install && \
|
||||
echo "**** Patch Sab commit into version.py ****" && \
|
||||
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/matching-refs/tags/${SABNZBD_VERSION}" | jq -r '.[].object.sha') && \
|
||||
SAB_COMMIT_SHA=$(curl -s "https://api.github.com/repos/sabnzbd/sabnzbd/git/ref/tags/${SABNZBD_VERSION}" | jq -r '.object.sha') && \
|
||||
sed -i "s/__baseline__ .*/__baseline__ = \"${SAB_COMMIT_SHA}\"/" /app/sabnzbd/sabnzbd/version.py && \
|
||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||
echo "**** cleanup ****" && \
|
||||
|
||||
Reference in New Issue
Block a user