From d07ad14d6d473dc6eb2b3d7ca45a5aa53b3d4b5d Mon Sep 17 00:00:00 2001 From: Jens Freimann Date: Tue, 2 Feb 2021 10:29:17 +0100 Subject: [PATCH] make sure images are pushed as schema v2 On the second push to a repository in quay.io all images are converted to schema v1. To work around this bug we build the container image with --no-cache --squash-all. Because docker doesn't support --squash-all we switch to use podman until the workaround is not needed any more. Signed-off-by: Jens Freimann --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4fa48b43..9e5fdc6d 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ generate: controller-gen # Build the docker image docker-build: test - docker build . -t ${IMG} + podman build --squash-all --no-cache . -t ${IMG} # Push the docker image docker-push: