mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-19 09:57:02 +00:00
fix build-static target
This commit is contained in:
parent
35f43f8698
commit
237781ae95
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -8,13 +8,13 @@ test:
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
build:
|
build:
|
||||||
go build -o bin ./...
|
go build -o bin/ ./...
|
||||||
|
|
||||||
docker-image:
|
docker-image:
|
||||||
docker build -t kubeconform .
|
docker build -t kubeconform .
|
||||||
|
|
||||||
build-static:
|
build-static:
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o bin/kubeconform
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o bin/ ./...
|
||||||
|
|
||||||
docker-test:
|
docker-test:
|
||||||
docker run -t -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform golang:1.14 make test
|
docker run -t -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform golang:1.14 make test
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue