-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 679 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 679 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
28
29
30
IMG = github.com/ad/go-githublistener
DEV-TAG = dev
TAG = latest
CWD = $(shell pwd)
build: #test
@touch db/githublistener.db
@docker build -t $(IMG):$(TAG) .
devbuild: #test
@touch db/githublistener.db
@docker build -t $(IMG):$(DEV-TAG) . -f Dockerfile-dev
test:
@docker run --rm -v $(CWD):$(CWD) -w $(CWD) golang:alpine sh -c "go test -mod=vendor -v"
clean:
@docker-compose -f docker-compose.dev.yml rm -sfv
@docker-compose -f docker-compose.yml rm -sfv
dev: devbuild
@docker-compose -f docker-compose.dev.yml up
up: build
@docker-compose -f docker-compose.yml up
logs:
@docker-compose -f docker-compose.dev.yml logs -f
.PHONY: build devbuild test clean dev