Manually hack release status/support status

As API unnormalized.
This commit is contained in:
Daniel Black
2024-08-15 14:07:49 +10:00
parent c801951f3d
commit 0cb4378923
6 changed files with 49 additions and 7 deletions

View File

@ -56,7 +56,7 @@ LABEL org.opencontainers.image.authors="MariaDB Community" \
# bashbrew-architectures: amd64 arm64v8 ppc64le s390x
ARG MARIADB_VERSION=11.5.1
ENV MARIADB_VERSION=$MARIADB_VERSION
# release-status:RC
# release-status:Stable
# release-support-type:Short Term Support
# (https://downloads.mariadb.org/rest-api/mariadb/)

View File

@ -81,7 +81,7 @@ LABEL org.opencontainers.image.authors="MariaDB Community" \
# bashbrew-architectures: amd64 arm64v8 ppc64le s390x
ARG MARIADB_VERSION=1:11.5.1+maria~ubu2404
ENV MARIADB_VERSION $MARIADB_VERSION
# release-status:RC
# release-status:Stable
# release-support-type:Short Term Support
# (https://downloads.mariadb.org/rest-api/mariadb/)

View File

@ -56,8 +56,8 @@ LABEL org.opencontainers.image.authors="MariaDB Community" \
# bashbrew-architectures: amd64 arm64v8 ppc64le s390x
ARG MARIADB_VERSION=11.6.0
ENV MARIADB_VERSION=$MARIADB_VERSION
# release-status:Unknown
# release-support-type:Unknown
# release-status:RC
# release-support-type:Short Term Support
# (https://downloads.mariadb.org/rest-api/mariadb/)
# missing pwgen(epel), jemalloc(epel) (as entrypoint/user extensions)

View File

@ -81,8 +81,8 @@ LABEL org.opencontainers.image.authors="MariaDB Community" \
# bashbrew-architectures: amd64 arm64v8 ppc64le s390x
ARG MARIADB_VERSION=1:11.6.0+maria~ubu2404
ENV MARIADB_VERSION $MARIADB_VERSION
# release-status:Alpha
# release-support-type:Unknown
# release-status:RC
# release-support-type:Short Term Support
# (https://downloads.mariadb.org/rest-api/mariadb/)
# Allowing overriding of REPOSITORY, a URL that includes suite and component for testing and Enterprise Versions

View File

@ -246,6 +246,20 @@ for version in "${versions[@]}"; do
| jq -r --arg version "${version%-*}" '.major_releases[] | select(.release_id == $version) | [ .release_status ] , [ .release_support_type ] | @tsv')"
releaseStatus=${release[0]:-Unknown}
supportType=${release[1]:-Unknown}
if [ "$releaseStatus" == Unknown ]; then
case "$version" in
11.5*)
releaseStatus=Stable
;;
11.6*)
releaseStatus=RC
;;
main*)
releaseStatus=Alpha
;;
esac
supportType="Short Term Support"
fi
update_version
done

View File

@ -115,7 +115,7 @@
"milestone": "11.5",
"version": "11.5.1",
"fullVersion": "1:11.5.1+maria~ubu2404",
"releaseStatus": "RC",
"releaseStatus": "Stable",
"supportType": "Short Term Support",
"base": "ubuntu:noble",
"arches": [
@ -129,6 +129,34 @@
"milestone": "11.5",
"version": "11.5.1",
"fullVersion": "11.5.1",
"releaseStatus": "Stable",
"supportType": "Short Term Support",
"base": "ubi9",
"arches": [
"amd64",
"arm64v8",
"ppc64le",
"s390x"
]
},
"11.6": {
"milestone": "11.6",
"version": "11.6.0",
"fullVersion": "1:11.6.0+maria~ubu2404",
"releaseStatus": "RC",
"supportType": "Short Term Support",
"base": "ubuntu:noble",
"arches": [
"amd64",
"arm64v8",
"ppc64le",
"s390x"
]
},
"11.6-ubi": {
"milestone": "11.6",
"version": "11.6.0",
"fullVersion": "11.6.0",
"releaseStatus": "RC",
"supportType": "Short Term Support",
"base": "ubi9",