Skip to content

Commit

Permalink
Fix unversioned images
Browse files Browse the repository at this point in the history
They were not getting updated.
Scripts where using `DEFAULT` and ci.yml `DEFAULT_IMAGE`.
  • Loading branch information
findepi committed Sep 23, 2023
1 parent 1e6c71b commit 7205984
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ docker tag "${IMAGE_NAME}:${GRAAL_VERSION}-${JDK_VERSION}-polyglot" "${IMAGE_NAM
docker tag "${IMAGE_NAME}:${GRAAL_VERSION}-${JDK_VERSION}-polyglot" "${IMAGE_NAME}:${JDK_VERSION}-polyglot"
docker tag "${IMAGE_NAME}:${GRAAL_VERSION}-${JDK_VERSION}-polyglot" "${IMAGE_NAME}:${JDK_VERSION}-all"

if [ "${DEFAULT}" = "true" ]; then
if [ "${DEFAULT_IMAGE}" = "true" ]; then
docker tag "${IMAGE_NAME}:${GRAAL_VERSION}-${JDK_VERSION}" "${IMAGE_NAME}:latest"
docker tag "${IMAGE_NAME}:${GRAAL_VERSION}-${JDK_VERSION}-native" "${IMAGE_NAME}:native"
docker tag "${IMAGE_NAME}:${GRAAL_VERSION}-${JDK_VERSION}-polyglot" "${IMAGE_NAME}:polyglot"
Expand Down
2 changes: 1 addition & 1 deletion bin/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ docker push "${IMAGE_NAME}:${JDK_VERSION}-native"
docker push "${IMAGE_NAME}:${JDK_VERSION}-polyglot"
docker push "${IMAGE_NAME}:${JDK_VERSION}-all"

if [ "${DEFAULT}" = "true" ]; then
if [ "${DEFAULT_IMAGE}" = "true" ]; then
docker push "${IMAGE_NAME}:latest"
docker push "${IMAGE_NAME}:native"
docker push "${IMAGE_NAME}:polyglot"
Expand Down
2 changes: 1 addition & 1 deletion settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export IMAGE_NAME=findepi/graalvm # by necessity, this is also set in derived images' FROM directive
export GRAAL_VERSION="23.0.1"
export JDK_VERSION="${JDK_VERSION-java17}"
export DEFAULT="${DEFAULT-false}"
export DEFAULT_IMAGE="${DEFAULT_IMAGE-false}"

if [ "${JDK_VERSION}" = "java17" ]; then
GRAAL_JDK_VERSION="17.0.8"
Expand Down

0 comments on commit 7205984

Please sign in to comment.