mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-16 16:37:01 +00:00
Merge pull request #56 from chenrui333/go-1.16
chore: update to use go 1.16
This commit is contained in:
commit
0a14aae014
2 changed files with 4 additions and 4 deletions
6
Makefile
6
Makefile
|
|
@ -26,10 +26,10 @@ build-static:
|
||||||
CGO_ENABLED=0 GOFLAGS=-mod=vendor GOOS=linux GOARCH=amd64 GO111MODULE=on go build -trimpath -tags=netgo -ldflags "-extldflags=\"-static\"" -a -o bin/ ./...
|
CGO_ENABLED=0 GOFLAGS=-mod=vendor GOOS=linux GOARCH=amd64 GO111MODULE=on go build -trimpath -tags=netgo -ldflags "-extldflags=\"-static\"" -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.16 make test
|
||||||
|
|
||||||
docker-build-static:
|
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
|
docker run -t -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform golang:1.16 make build-static
|
||||||
|
|
||||||
build-bats:
|
build-bats:
|
||||||
docker build -t bats -f Dockerfile.bats .
|
docker build -t bats -f Dockerfile.bats .
|
||||||
|
|
@ -39,4 +39,4 @@ docker-acceptance: build-bats
|
||||||
docker run --network none -t bats -p acceptance-nonetwork.bats
|
docker run --network none -t bats -p acceptance-nonetwork.bats
|
||||||
|
|
||||||
release:
|
release:
|
||||||
docker run -e GITHUB_TOKEN -t -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform goreleaser/goreleaser:v0.138 goreleaser release --rm-dist
|
docker run -e GITHUB_TOKEN -t -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform goreleaser/goreleaser:v0.138 goreleaser release --rm-dist
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/yannh/kubeconform
|
module github.com/yannh/kubeconform
|
||||||
|
|
||||||
go 1.14
|
go 1.16
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/beevik/etree v1.1.0
|
github.com/beevik/etree v1.1.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue