diff --git a/build b/build index b8d5fd2..1c72d64 100755 --- a/build +++ b/build @@ -18,6 +18,8 @@ readonly VARIANTS=( graalvm21 ) +readonly LATEST_VERSION="24" + # Use buildkit to match CI as closely as possible. export DOCKER_BUILDKIT=1 @@ -44,23 +46,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 @@ -88,7 +73,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