-
-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 600 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 600 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
OK_COLOR=\033[32;01m
NO_COLOR=\033[0m
build:
@echo "$(OK_COLOR)==> Compiling binary$(NO_COLOR)"
go test && go build -o bin/imaginary
test:
go test
install:
go get -u .
benchmark: build
bash benchmark.sh
docker-build:
@echo "$(OK_COLOR)==> Building Docker image$(NO_COLOR)"
docker build --no-cache=true --build-arg IMAGINARY_VERSION=$(VERSION) -t h2non/imaginary:$(VERSION) .
docker-push:
@echo "$(OK_COLOR)==> Pushing Docker image v$(VERSION) $(NO_COLOR)"
docker push h2non/imaginary:$(VERSION)
docker: docker-build docker-push
.PHONY: test benchmark docker-build docker-push docker