We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25fb813 commit 94a7d22Copy full SHA for 94a7d22
docker.mk
@@ -1,6 +1,5 @@
1
DOCKERFILE ?= ./build/Dockerfile
2
IMG_NAME ?= x1unix/go-playground
3
-TAG ?= 1.0.0
4
5
.PHONY: docker
6
docker: docker-login docker-make-image
@@ -20,5 +19,8 @@ docker-login:
20
19
21
.PHONY: docker-make-image
22
docker-make-image:
+ @if [ -z "$(TAG)" ]; then\
23
+ echo "required parameter TAG is undefined" && exit 1; \
24
+ fi;
25
@echo "- Building '$(IMG_NAME):latest' $(TAG)..."
26
docker image build -t $(IMG_NAME):latest -t $(IMG_NAME):$(TAG) -f $(DOCKERFILE) .
0 commit comments