From c04ca71f7ae18b39d63cdafd110c56866c3c5651 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Wed, 9 Nov 2022 15:16:41 +0200 Subject: [PATCH] docker: Don't specify the image tag in --cache-from The option is badly documented. Apparently the image name is enough. Specifying the tag breaks podman/buildah build. --- docker/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/Makefile b/docker/Makefile index 519bdd3f..a4b1ce3c 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -84,7 +84,7 @@ build-base-$(1): BASE_IMAGE = $(BASE_IMAGE_$(1)) build-base-$(1): build-base-$(1).Dockerfile rm -rf build; mkdir -p build $(DOCKER) build -f $$< \ - --cache-from=$(PROTONSDK_URLBASE)/build-base-$(1):latest \ + --cache-from=$(PROTONSDK_URLBASE)/build-base-$(1) \ -t $(PROTONSDK_URLBASE)/build-base-$(1):latest \ build pull:: @@ -102,7 +102,7 @@ all binutils: binutils-$(1)-$(2) binutils-$(1)-$(2): binutils-$(1)-$(2).Dockerfile | build-base rm -rf build; mkdir -p build $(DOCKER) build -f $$< \ - --cache-from=$(PROTONSDK_URLBASE)/binutils-$(1)-$(2):$(BINUTILS_VERSION) \ + --cache-from=$(PROTONSDK_URLBASE)/binutils-$(1)-$(2) \ -t $(PROTONSDK_URLBASE)/binutils-$(1)-$(2):$(BINUTILS_VERSION) \ -t $(PROTONSDK_URLBASE)/binutils-$(1)-$(2):latest \ build @@ -124,7 +124,7 @@ all mingw: mingw-$(2)-$(1) mingw-$(2)-$(1): mingw-$(2)-$(1).Dockerfile | binutils rm -rf build; mkdir -p build $(DOCKER) build -f $$< \ - --cache-from=$(PROTONSDK_URLBASE)/mingw-$(2)-$(1):$(MINGW_VERSION) \ + --cache-from=$(PROTONSDK_URLBASE)/mingw-$(2)-$(1) \ -t $(PROTONSDK_URLBASE)/mingw-$(2)-$(1):$(MINGW_VERSION) \ -t $(PROTONSDK_URLBASE)/mingw-$(2)-$(1):latest \ build @@ -156,7 +156,7 @@ gcc-$(1)-$(2): TARGET_FLAGS = $(GCC_TARGET_FLAGS_$(2)) gcc-$(1)-$(2): gcc-$(1)-$(2).Dockerfile | mingw rm -rf build; mkdir -p build $(DOCKER) build -f $$< \ - --cache-from=$(PROTONSDK_URLBASE)/gcc-$(1)-$(2):$(GCC_VERSION) \ + --cache-from=$(PROTONSDK_URLBASE)/gcc-$(1)-$(2) \ -t $(PROTONSDK_URLBASE)/gcc-$(1)-$(2):$(GCC_VERSION) \ -t $(PROTONSDK_URLBASE)/gcc-$(1)-$(2):latest \ build @@ -179,7 +179,7 @@ proton: BASE_IMAGE = $(STEAMRT_URLBASE)/steamrt/soldier/sdk:$(STEAMRT_VERSION) proton: proton.Dockerfile | gcc rm -rf build; mkdir -p build $(DOCKER) build -f $$< \ - --cache-from=$(PROTONSDK_URLBASE):$(PROTONSDK_VERSION) \ + --cache-from=$(PROTONSDK_URLBASE) \ -t $(PROTONSDK_URLBASE):$(PROTONSDK_VERSION) \ -t $(PROTONSDK_URLBASE):latest \ build