Skip to content

Commit

Permalink
Update goreleaser to use boring (#1702)
Browse files Browse the repository at this point in the history
* Update goreleaser to use boring

* add extra flag

* remove -w

* add static flag

* update build to use latest goreleaser

* update makefile to use new build image
  • Loading branch information
bathina2 committed Oct 24, 2022
1 parent 7eb4949 commit 2a93133
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down

0 comments on commit 2a93133

Please sign in to comment.