diff --git a/build b/build index c09c6cb..77233c8 100755 --- a/build +++ b/build @@ -19,6 +19,8 @@ readonly VARIANTS=( graalvm25 ) +readonly LATEST_VERSION="26" + # Use buildkit to match CI as closely as possible. export DOCKER_BUILDKIT=1 @@ -45,23 +47,6 @@ function compute_metadata() { GIT_HEAD_REF="$(git show-ref --head --hash ^HEAD)" } -function compute_latest_version() { - # Java versions are typically released towards the end of the month in March and September, - # so we use the version from the previous release cycle until the month after the release. - local base_year=2025 - local base_version=23 - - version="$((base_version + ($(date +%Y) - base_year) * 2))" - if [ "$(date +%m)" -ge 4 ]; then - version="$((version + 1))" - fi - if [ "$(date +%m)" -ge 10 ]; then - version="$((version + 1))" - fi - - export LATEST_VERSION="$version" -} - # docker build wrapper with common arguments # See https://github.com/opencontainers/image-spec/blob/main/annotations.md for common labels # See https://docs.github.com/en/packages/learn-github-packages/connecting-a-repository-to-a-package @@ -90,7 +75,6 @@ function image_name() { function do_build() { compute_metadata - compute_latest_version docker_build base "$(image_name base)" docker_build full "$(image_name latest)" if [ -n "${GITHUB_OUTPUT+unset}" ]; then