Skip to content

Commit

Permalink
Save vvelero image tarball only for velero namespace in docker registry
Browse files Browse the repository at this point in the history
Signed-off-by: danfengl <[email protected]>
  • Loading branch information
danfengliu committed Nov 10, 2022
1 parent 1f0b835 commit d07f378
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,15 @@ endif
-f $(VELERO_DOCKERFILE) .
@echo "container: $(IMAGE):$(VERSION)"
ifeq ($(BUILDX_OUTPUT_TYPE), registry)
ifeq ($(REGISTRY), velero)
@echo "save velero image tarball $(IMAGE):$(VERSION)"
@docker pull $(IMAGE):$(VERSION)
@echo "remove velero image tarball $(BIN)-$(VERSION).tar if it exist already"
@rm -f $(BIN)-$(VERSION).tar
@docker save $(IMAGE):$(VERSION) -o $(BIN)-$(VERSION).tar
@gzip $(BIN)-$(VERSION).tar
endif
endif

SKIP_TESTS ?=
test: build-dirs
Expand Down

0 comments on commit d07f378

Please sign in to comment.