From c42b7462d2ca67bc5584db9ba64ba8f410bf337d Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Wed, 29 Jun 2022 13:32:59 -0400 Subject: [PATCH] Split docker tag in Makefile --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 39fc9fd..572d3f1 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,10 @@ install: # Create self-contained Docker image. # Also tests functionality. docker: - docker buildx build . -f Dockerfile --platform "$(DOCKER_PLATFORM)" --tag "$(DOCKER_TAG)" $(DOCKER_OUTPUT) + echo "$(DOCKER_TAG)" | sed -e 's/,/\n/g' | \ + while read -r tag; do \ + docker buildx build . -f Dockerfile --platform "$(DOCKER_PLATFORM)" --tag "${{tag}}" $(DOCKER_OUTPUT); \ + done # Create self-container Docker image with GPU support. # Requires nvidia-docker.