Merge pull request #69 from chenrui333/go-1.17

build: bump to use go1.17
This commit is contained in:
Yann Hamon 2021-08-22 19:04:16 +02:00 committed by GitHub
commit ae74fa6e53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View file

@ -1,8 +1,8 @@
FROM alpine:latest as certs
FROM alpine:3.14 as certs
RUN apk add ca-certificates
FROM scratch AS kubeconform
MAINTAINER Yann HAMON <yann@mandragor.org>
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY bin/kubeconform /
ENTRYPOINT ["/kubeconform"]
ENTRYPOINT ["/kubeconform"]

View file

@ -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/ ./...
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 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:
docker build -t bats -f Dockerfile.bats .
@ -43,4 +43,4 @@ release:
update-deps:
go get -u ./...
go mod tidy
go mod tidy

3
go.mod
View file

@ -1,10 +1,11 @@
module github.com/yannh/kubeconform
go 1.16
go 1.17
require (
github.com/beevik/etree v1.1.0
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0
gopkg.in/yaml.v2 v2.4.0 // indirect
sigs.k8s.io/yaml v1.2.0