Skip to content

Commit

Permalink
fix build version in goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Jun 30, 2020
1 parent 324a9bc commit b0826ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ builds:
flags:
- -trimpath
ldflags:
- "-s -w -X github.com/minio/kes/cmd/kes/main.version={{.Version}}"
- "-s -w -X main.version={{.Version}}"

archives:
-
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
FROM golang:1.13-alpine
FROM golang:1.14-alpine

LABEL maintainer="MinIO Inc <dev@min.io>"

ENV GOPATH /go
ENV CGO_ENABLED 0
ENV GO111MODULE on
ENV GOPROXY https://proxy.golang.org

RUN \
apk add --no-cache git && \
go install -v -ldflags "-s -w" github.com/minio/kes/cmd/release && \
go install -v -ldflags "-s -w -X main.version=$(release)" github.com/minio/kes/cmd/kes
GOPROXY=$(go env GOPROXY) go install -v -ldflags "-s -w -X main.version=$(release)" github.com/minio/kes/cmd/kes

FROM alpine:3.10
FROM alpine:3.12

EXPOSE 7373

Expand Down

0 comments on commit b0826ba

Please sign in to comment.