-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
22 lines (18 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
NAME = psp-util
VERSION = v1.2.0
build:
go build -o bin/${NAME} main.go
multi-build:
mkdir -p bin/darwin_amd64 bin/linux_amd64
GOOS=darwin GOARCH=amd64 go build -o bin/darwin_amd64/${NAME} main.go
GOOS=linux GOARCH=amd64 go build -o bin/linux_amd64/${NAME} main.go
GOOS=windows GOARCH=amd64 go build -o bin/windows_amd64/${NAME} main.go
update-version:
sed -i.bak -e "s/v[0-9].[0-9].[0-9][-alpha]*[-beta]*/${VERSION}/g" ./cmd/version.go
krew-template:
docker run -v `pwd`/.krew.yaml:/tmp/template-file.yaml rajatjindal/krew-release-bot:v0.0.38 \
krew-release-bot template --tag v1.0.1 --template-file /tmp/template-file.yaml
test-build:
docker rmi -f jlandowner/psp-util:${VERSION}
docker build . -f ./test/test.Dockerfile -t jlandowner/psp-util:${VERSION}
docker run --rm jlandowner/psp-util:${VERSION}