fix(Makefile): -e needed for color codes (#215)
closes #214 Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
parent
9177155c79
commit
af2d805f32
6
Makefile
6
Makefile
@ -5,15 +5,15 @@ OK_COLOR=\033[32;01m
|
|||||||
NO_COLOR=\033[0m
|
NO_COLOR=\033[0m
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@echo "$(OK_COLOR)==>$(NO_COLOR) Building $(REPOSITORY):$(TAG)"
|
@echo -e "$(OK_COLOR)==>$(NO_COLOR) Building $(REPOSITORY):$(TAG)"
|
||||||
@docker build --pull --rm -t $(REPOSITORY):$(TAG) .
|
@docker build --pull --rm -t $(REPOSITORY):$(TAG) .
|
||||||
|
|
||||||
$(REPOSITORY)_$(TAG).tar: build
|
$(REPOSITORY)_$(TAG).tar: build
|
||||||
@echo "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@"
|
@echo -e "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@"
|
||||||
@docker save $(REPOSITORY):$(TAG) > $@
|
@docker save $(REPOSITORY):$(TAG) > $@
|
||||||
|
|
||||||
push: build
|
push: build
|
||||||
@echo "$(OK_COLOR)==>$(NO_COLOR) Pushing $(REPOSITORY):$(TAG)"
|
@echo -e "$(OK_COLOR)==>$(NO_COLOR) Pushing $(REPOSITORY):$(TAG)"
|
||||||
@docker push $(REPOSITORY):$(TAG)
|
@docker push $(REPOSITORY):$(TAG)
|
||||||
|
|
||||||
all: build push
|
all: build push
|
||||||
|
Reference in New Issue
Block a user