Skip to content

Commit

Permalink
Save vvelero image tarball only for velero namespace in docker regist…
Browse files Browse the repository at this point in the history
…ry (#5581)

Signed-off-by: danfengl <danfengl@vmware.com>
  • Loading branch information
danfengliu authored Nov 11, 2022
1 parent 1f0b835 commit 1ea1d4d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,11 @@ endif
--build-arg=RESTIC_VERSION=$(RESTIC_VERSION) \
-f $(VELERO_DOCKERFILE) .
@echo "container: $(IMAGE):$(VERSION)"
ifeq ($(BUILDX_OUTPUT_TYPE), registry)
@docker pull $(IMAGE):$(VERSION)
@docker save $(IMAGE):$(VERSION) -o $(BIN)-$(VERSION).tar
@gzip $(BIN)-$(VERSION).tar
ifeq ($(BUILDX_OUTPUT_TYPE)_$(REGISTRY), registry_velero)
docker pull $(IMAGE):$(VERSION)
rm -f $(BIN)-$(VERSION).tar
docker save $(IMAGE):$(VERSION) -o $(BIN)-$(VERSION).tar
gzip -f $(BIN)-$(VERSION).tar
endif

SKIP_TESTS ?=
Expand Down

0 comments on commit 1ea1d4d

Please sign in to comment.