-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (29 loc) · 821 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
# I usually keep a `VERSION` file in the root so that anyone
# can clearly check what's the VERSION of `master` or any
# branch at any time by checking the `VERSION` in that git
# revision.
#
# Another benefit is that we can pass this file to our Docker
# build context and have the version set in the binary that ends
# up inside the Docker image too.
VERSION := $(shell cat ./VERSION)
IMAGE_NAME := cortiz/certview
clean:
rm -rf ./dist
buildDeps:
go install github.com/goreleaser/goreleaser@latest
goVendor:
GOPROXY="" go mod vendor
build:
goreleaser build --rm-dist --snapshot
vet:
go vet ./...
tidy:
GOPROXY="" go mod tidy
test:
go test ./...
release:
git tag -a -s $(VERSION) -m "Release" || true
git push origin $(VERSION)
goreleaser --rm-dist
.PHONY: install test fmt release