forked from jjti/repp
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
39 lines (29 loc) · 633 Bytes
/
Makefile
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
31
32
33
34
35
36
37
38
39
VERSION=v1.0.0
.PHONY: build
build: fmt lint docs
go mod tidy
go mod vendor
go build -o ./bin/repp ./cmd/repp
.PHONY: install
install:
go install ./cmd/repp
.PHONY: image
image:
docker build -t jjtimmons/repp:$(VERSION) -t jjtimmons/repp:latest .
image/push: image
docker push jjtimmons/repp:$(VERSION)
docker push jjtimmons/repp:latest
release: image/push
gh release create $(VERSION) -t $(VERSION) --generate-notes -d
.PHONY: test
test:
go test -timeout 200s ./internal/...
.PHONY: docs
docs:
cd docs && rm *.md && make
docs/serve: docs
cd docs && make serve
fmt:
gofmt -l ./internal
lint:
golangci-lint run