diff --git a/.goreleaser.yml b/.goreleaser.yml index 68d6834544..43c2182791 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -7,16 +7,18 @@ builds: binary: kanctl main: cmd/kanctl/main.go ldflags: &ldflags - - -s -w + - -extldflags "-static" -X github.com/kanisterio/kanister/pkg/version.VERSION={{.Version}} -X github.com/kanisterio/kanister/pkg/version.GIT_COMMIT={{.Commit}} -X github.com/kanisterio/kanister/pkg/version.BUILD_DATE={{.Date}} env: &env - GO111MODULE=on - - CGO_ENABLED=0 + - CGO_ENABLED=1 + - GOEXPERIMENT=boringcrypto + - CC=gcc + - CXX=g++ - GO_EXTLINK_ENABLED=0 goos: - - darwin - linux goarch: &goarch - amd64 diff --git a/Makefile b/Makefile index 0f6cbd8179..1446e54584 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,7 @@ IMAGE_NAME := $(BIN) IMAGE := $(REGISTRY)/$(IMAGE_NAME) -BUILD_IMAGE ?= ghcr.io/kanisterio/build:v0.0.21 +BUILD_IMAGE ?= ghcr.io/kanisterio/build:v0.0.22 # tag 0.1.0 is, 0.0.1 (latest) + gh + aws + helm binary DOCS_BUILD_IMAGE ?= ghcr.io/kanisterio/docker-sphinx:0.2.0 diff --git a/docker/build/Dockerfile b/docker/build/Dockerfile index de354140c2..1ffba4a06c 100644 --- a/docker/build/Dockerfile +++ b/docker/build/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update && apt-get -y install apt-transport-https ca-certificates bas COPY --from=bitnami/kubectl:1.17 /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/ -COPY --from=goreleaser/goreleaser:v1.2.4 /usr/local/bin/goreleaser /usr/local/bin/ +COPY --from=goreleaser/goreleaser:v1.12.3 /usr/bin/goreleaser /usr/local/bin/ COPY --from=alpine/helm:3.2.0 /usr/bin/helm /usr/local/bin/