-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (34 loc) · 867 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
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: scan
scan:
trivy fs .
.PHONY: build
build:
goreleaser build --clean
.PHONY: build-snapshot
build-snapshot:
goreleaser build --clean --snapshot --single-target
.PHONY: release-skip-publish
release-skip-publish:
goreleaser release --clean --skip-publish --skip-sign
.PHONY: release-snapshot
release-snapshot:
goreleaser release --clean --skip-publish --snapshot --skip-sign
.PHONY: lint
lint:
golangci-lint run ./...
.PHONY: changelog
changelog:
git-chglog -o CHANGELOG.md
.PHONY: view-changelog
view-changelog:
git-chglog
.PHONY: test
test:
go test -run '' ./internal/ -v
.PHONY: gen-doc
gen-doc:
mkdir -p ./doc
./dist/vault-token-monitor_linux_amd64_v1/vault-token-monitor documentation --dir ./doc
.PHONY: doc-site
doc-site:
podman run --rm -it -p 8000:8000 -v ${PWD}/www:/docs:z squidfunk/mkdocs-material