mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-18 01:17:03 +00:00
build: bump to use go1.17
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
parent
98c80939c1
commit
727f5fe57e
3 changed files with 8 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:latest as certs
|
FROM alpine:3.14 as certs
|
||||||
RUN apk add ca-certificates
|
RUN apk add ca-certificates
|
||||||
|
|
||||||
FROM scratch AS kubeconform
|
FROM scratch AS kubeconform
|
||||||
|
|
|
||||||
4
Makefile
4
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.16 make test
|
docker run -t -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform golang:1.17 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.16 make build-static
|
docker run -t -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform golang:1.17 make build-static
|
||||||
|
|
||||||
build-bats:
|
build-bats:
|
||||||
docker build -t bats -f Dockerfile.bats .
|
docker build -t bats -f Dockerfile.bats .
|
||||||
|
|
|
||||||
4
go.mod
4
go.mod
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/yannh/kubeconform
|
module github.com/yannh/kubeconform
|
||||||
|
|
||||||
go 1.16
|
go 1.17
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/beevik/etree v1.1.0
|
github.com/beevik/etree v1.1.0
|
||||||
|
|
@ -9,3 +9,5 @@ require (
|
||||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||||
sigs.k8s.io/yaml v1.2.0
|
sigs.k8s.io/yaml v1.2.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
require github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue