Skip to content

Commit

Permalink
Sanitize temporary filename for podman image load
Browse files Browse the repository at this point in the history
  • Loading branch information
trgeiger committed Apr 29, 2024
1 parent 32ed986 commit 62017c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ e2e-coverage:
kind-load: $(KIND) #EXHELP Loads the currently constructed image onto the cluster.
ifeq ($(CONTAINER_RUNTIME),podman)
@echo "Using Podman"
podman save $(IMG) -o $(IMG).tar
$(KIND) load image-archive $(IMG).tar --name $(KIND_CLUSTER_NAME)
rm $(IMG).tar
$(CONTAINER_RUNTIME) save $(IMG) -o /tmp/$(shell echo $(IMG) | sed 's/[/:]/-/g').tar
$(KIND) load image-archive /tmp/$(shell echo $(IMG) | sed 's/[/:]/-/g').tar --name $(KIND_CLUSTER_NAME)
rm /tmp/$(shell echo $(IMG) | sed 's/[/:]/-/g').tar
else
@echo "Using Docker"
$(KIND) load docker-image $(IMG) --name $(KIND_CLUSTER_NAME)
Expand Down

0 comments on commit 62017c9

Please sign in to comment.