mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-10 23:14:17 +00:00
Github Action simple CI
This commit is contained in:
parent
c4ab3e29b2
commit
bc3d13148e
4 changed files with 21 additions and 43 deletions
13
Makefile
13
Makefile
|
|
@ -1,10 +1,19 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
build:
|
||||
go build -o bin/kubeconform
|
||||
test-build: test build
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
build:
|
||||
go build -o bin/kubeconform
|
||||
|
||||
build-static:
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o bin/kubeconform
|
||||
|
||||
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-build-static:
|
||||
docker run -t -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform golang:1.14 make build-static
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue