Skip to content

Commit

Permalink
for bundle build use --squash-all and --no-cache
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 5, 2021
1 parent b18ceff commit faf62be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -120,4 +120,4 @@ bundle: manifests
# Build the bundle image.
.PHONY: bundle-build
bundle-build:
docker build -f bundle.Dockerfile -t $(BUNDLE_IMG) .
podman build --squash-all --no-cache -f bundle.Dockerfile -t $(BUNDLE_IMG) .

0 comments on commit faf62be

Please sign in to comment.