From d6d2a87d58792f9328a682cffa4a65a4eb4a1a8b Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 27 Sep 2023 02:29:51 +0200 Subject: fix: Docker image tags Make sure to push to both the latest tag and the current version. See https://stackoverflow.com/a/60724547 Also fixes the tag for the Temurin JDK17 image. --- docker/Dockerfile | 2 +- docker/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 79a5eacf..80748e7a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,7 +4,7 @@ FROM public.ecr.aws/amazoncorretto/amazoncorretto:17-al2023-jdk AS jdk -FROM --platform=$BUILDPLATFORM docker.io/eclipse-temurin:17-jammy AS jlink-base +FROM --platform=$BUILDPLATFORM docker.io/eclipse-temurin:17-jdk-jammy AS jlink-base # Use the Ubuntu Jammy based Temurin image for JLink, because it already # contains the require objcopy tool for stripping debug symbols: # https://github.com/docker-library/openjdk/issues/351 diff --git a/docker/build.sh b/docker/build.sh index 76970617..6ddd0cc7 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -33,7 +33,7 @@ rm -rf dist docker buildx build . \ --platform linux/amd64,linux/arm64 \ - --output "type=image,name=ghcr.io/graphs4value/refinery:${refinery_version},name=ghcr.io/graphs4value/refinery:latest,push=true,annotation-index.org.opencontainers.image.source=https://github.com/graphs4value/refinery,annotation-index.org.opencontainers.image.description=Refinery: an efficient graph solver for generating well-formed models,annotation-index.org.opencontainers.image.licenses=EPL-2.0" \ + --output "type=image,\"name=ghcr.io/graphs4value/refinery:${refinery_version},ghcr.io/graphs4value/refinery:latest\",push=true,annotation-index.org.opencontainers.image.source=https://github.com/graphs4value/refinery,annotation-index.org.opencontainers.image.description=Refinery: an efficient graph solver for generating well-formed models,annotation-index.org.opencontainers.image.licenses=EPL-2.0" \ --label 'org.opencontainers.image.source=https://github.com/graphs4value/refinery' \ --label 'org.opencontainers.image.description=Refinery: an efficient graph solver for generating well-formed models' \ --label 'org.opencontainers.image.licenses=EPL-2.0' -- cgit v1.2.3-54-g00ecf