File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed
Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ readonly VARIANTS=(
1818 graalvm21
1919)
2020
21+ readonly LATEST_VERSION=" 24"
22+
2123# Use buildkit to match CI as closely as possible.
2224export DOCKER_BUILDKIT=1
2325
@@ -44,23 +46,6 @@ function compute_metadata() {
4446 GIT_HEAD_REF=" $( git show-ref --head --hash ^HEAD) "
4547}
4648
47- function compute_latest_version() {
48- # Java versions are typically released towards the end of the month in March and September,
49- # so we use the version from the previous release cycle until the month after the release.
50- local base_year=2025
51- local base_version=23
52-
53- version=" $(( base_version + ($(date +% Y) - base_year) * 2 )) "
54- if [ " $( date +%m) " -ge 4 ]; then
55- version=" $(( version + 1 )) "
56- fi
57- if [ " $( date +%m) " -ge 10 ]; then
58- version=" $(( version + 1 )) "
59- fi
60-
61- export LATEST_VERSION=" $version "
62- }
63-
6449# docker build wrapper with common arguments
6550# See https://github.com/opencontainers/image-spec/blob/main/annotations.md for common labels
6651# See https://docs.github.com/en/packages/learn-github-packages/connecting-a-repository-to-a-package
@@ -88,7 +73,6 @@ function image_name() {
8873
8974function do_build() {
9075 compute_metadata
91- compute_latest_version
9276 docker_build base " $( image_name base) "
9377 docker_build full " $( image_name latest) "
9478 if [ -n " ${GITHUB_OUTPUT+unset} " ]; then
You can’t perform that action at this time.
0 commit comments