From 466ec73ed73b19f435c21708f53db66cd914978e Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Sun, 16 Oct 2022 14:14:09 +0200 Subject: [PATCH] Update goreleaser (#137) * Update goreleaser --- Dockerfile.bats | 2 +- Makefile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.bats b/Dockerfile.bats index f859749..964b39b 100644 --- a/Dockerfile.bats +++ b/Dockerfile.bats @@ -1,5 +1,5 @@ FROM bats/bats:v1.2.1 RUN apk --no-cache add ca-certificates parallel libxml2-utils -COPY dist/kubeconform_linux_amd64/kubeconform /code/bin/ +COPY dist/kubeconform_linux_amd64_v1/kubeconform /code/bin/ COPY acceptance.bats acceptance-nonetwork.bats /code/ COPY fixtures /code/fixtures diff --git a/Makefile b/Makefile index bfd4cb3..43d8907 100644 --- a/Makefile +++ b/Makefile @@ -31,11 +31,11 @@ docker-acceptance: build-bats docker run --network none -t bats -p acceptance-nonetwork.bats goreleaser-build-static: - docker run -t -e GOOS=linux -e GOARCH=amd64 -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform goreleaser/goreleaser:v0.176.0 build --single-target --skip-post-hooks --rm-dist --snapshot - cp dist/kubeconform_linux_amd64/kubeconform bin/ + docker run -t -e GOOS=linux -e GOARCH=amd64 -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform goreleaser/goreleaser:v1.11.5 build --single-target --skip-post-hooks --rm-dist --snapshot + cp dist/kubeconform_linux_amd64_v1/kubeconform bin/ release: - docker run -e GITHUB_TOKEN -t -v /var/run/docker.sock:/var/run/docker.sock -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform goreleaser/goreleaser:v0.176.0 release --rm-dist + docker run -e GITHUB_TOKEN -t -v /var/run/docker.sock:/var/run/docker.sock -v $$PWD:/go/src/github.com/yannh/kubeconform -w /go/src/github.com/yannh/kubeconform goreleaser/goreleaser:v1.11.5 release --rm-dist update-deps: go get -u ./...