forked from Netflix/dispatch-docker
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
Latest commit
executable file
·21 lines (15 loc) · 510 Bytes
/
Copy pathMakefile
File metadata and controls
executable file
·21 lines (15 loc) · 510 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
REPOSITORY?=dispatch-docker
TAG?=latest
OK_COLOR=\033[32;01m
NO_COLOR=\033[0m
build:
@printf "$(OK_COLOR)==>$(NO_COLOR) Building $(REPOSITORY):$(TAG)\n"
@docker build --pull --rm -t $(REPOSITORY):$(TAG).
$(REPOSITORY)_$(TAG).tar: build
@printf "$(OK_COLOR)==>$(NO_COLOR) Saving $(REPOSITORY):$(TAG) > $@\n"
@docker save $(REPOSITORY):$(TAG)>$@
push: build
@printf "$(OK_COLOR)==>$(NO_COLOR) Pushing $(REPOSITORY):$(TAG)\n"
@docker push $(REPOSITORY):$(TAG)
all: build push
.PHONY: all build push