-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
26 lines (23 loc) · 1.12 KB
/
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
PROFILE := local
VERSION ?= $(shell git describe --tags --always --dirty=-SNAPSHOT-`git rev-parse --short HEAD`| tr -d 'v')
default: deploy
gofmt:
ifeq ($(shell uname -s), Darwin)
find pkg/ -type f | grep go | egrep -v "mocks|gomock" | xargs gofmt -l -d -s -w; sync
find pkg/ -type f | grep go | egrep -v "mocks|gomock" | xargs gofumpt -l -d -w; sync
find pkg/ -type f | grep go | egrep -v "mocks|gomock" | xargs gci write; sync
find pkg/ -type f | grep go | egrep -v "mocks|gomock" | xargs goimports -l -d -w; sync
find cmd/ -type f | grep go | egrep -v "mocks|gomock" | xargs gofmt -l -d -s -w; sync
find cmd/ -type f | grep go | egrep -v "mocks|gomock" | xargs gofumpt -l -d -w; sync
find cmd/ -type f | grep go | egrep -v "mocks|gomock" | xargs gci write; sync
find cmd/ -type f | grep go | egrep -v "mocks|gomock" | xargs goimports -l -d -w; sync
gofmt -l -d -s -w main.go; sync
gofumpt -l -d -w main.go; sync
gci write main.go; sync
goimports -l -d -w main.go; sync
endif
.PHONY:
deploy:
@helm plugin uninstall lmc 2> /dev/null || true
@goreleaser release --skip-publish --rm-dist --snapshot
@helm plugin install .