Skip to content

Commit

Permalink
make sure images are pushed as schema v2
Browse files Browse the repository at this point in the history
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 <jfreimann@redhat.com>
  • Loading branch information
jensfr committed Feb 2, 2021
1 parent c3813b6 commit d07ad14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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:
Expand Down

0 comments on commit d07ad14

Please sign in to comment.