Last updated

This commit is contained in:
Alexandre
2022-09-29 04:00:18 +02:00
committed by GitHub
parent 160b0a1dae
commit c23770d342

View File

@@ -116,8 +116,7 @@ for f in */; do
) )
[ "${BYDATE}" = true ] && \ [ "${BYDATE}" = true ] && \
LASTVERSION=$( LASTVERSION=$(curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=${LISTSIZE}&ordering=last_updated" |
curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=$LISTSIZE" |
jq '.results | .[] | .name' -r | jq '.results | .[] | .name' -r |
sed -e '/.*latest.*/d' | sed -e '/.*latest.*/d' |
sed -e '/.*dev.*/d' | sed -e '/.*dev.*/d' |
@@ -125,8 +124,7 @@ for f in */; do
sort -V | sort -V |
tail -n 1 tail -n 1
) && \ ) && \
DATE=$( DATE=$(curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=${LISTSIZE}&ordering=last_updated" |
curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=$LISTSIZE" |
jq '.results[] | select(.name==$LASTVERSION) | .last_updated' -r --arg LASTVERSION "$LASTVERSION" jq '.results[] | select(.name==$LASTVERSION) | .last_updated' -r --arg LASTVERSION "$LASTVERSION"
) && \ ) && \
DATE="${DATE%T*}" && \ DATE="${DATE%T*}" && \