Skip to content

Commit

Permalink
docker-library-manifest: main is very latest
Browse files Browse the repository at this point in the history
If we are on the main branch we are the very latest
and take that preference ahead of what the downloads
API says.
  • Loading branch information
grooverdan committed Jul 31, 2024
1 parent 53a8541 commit 3881ce9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/docker-library-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ if (($(buildah manifest inspect "$devmanifest" | jq '.manifests | length') >= ex
if ! wget -nv https://downloads.mariadb.org/rest-api/mariadb/ -O "$t"; then
echo >&2 "Wget failed"
fi
specialtags['verylatest']=$(jq '.major_releases[0].release_id' <"$t")
if [ "$branch" = 'main' ]; then
specialtags['verylatest']=\"${container_tag}\"
else
specialtags['verylatest']=$(jq '.major_releases[0].release_id' <"$t")
fi
specialtags['latest']=$(jq '.major_releases | map(select(.release_status == "Stable"))[0].release_id' <"$t")
specialtags['latest-lts']=$(jq '.major_releases | map(select(.release_status == "Stable" and .release_support_type == "Long Term Support"))[0].release_id' <"$t")
specialtags['earliest']=$(jq '.major_releases | map(select( (( (.release_eol_date // "2031-01-01") + "T00:00:00Z") | fromdate) > now))[-1].release_id' <"$t")
Expand Down

0 comments on commit 3881ce9

Please sign in to comment.