-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update dependencies * Use go 1.19 * Fix Dockerfile * Test out circleci builds * Revert circleci config changes * Update version to 1.5.0
- Loading branch information
Showing
5 changed files
with
51 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
FROM golang:1.18 as builder | ||
FROM --platform=$BUILDPLATFORM golang:1.19 as builder | ||
ENV SRC github.com/segmentio/topicctl | ||
ENV CGO_ENABLED=0 | ||
|
||
ARG VERSION | ||
RUN test -n "${VERSION}" | ||
|
||
COPY . /go/src/${SRC} | ||
RUN cd /go/src/${SRC} && make install VERSION=${VERSION} | ||
|
||
ARG TARGETOS TARGETARCH | ||
RUN cd /go/src/${SRC} && \ | ||
GOOS=$TARGETOS GOARCH=$TARGETARCH make topicctl VERSION=${VERSION} | ||
|
||
FROM scratch | ||
|
||
COPY --from=builder /go/bin/topicctl /bin/topicctl | ||
COPY --from=builder \ | ||
/go/src/github.com/segmentio/topicctl/build/topicctl \ | ||
/bin/topicctl | ||
ENTRYPOINT ["/bin/topicctl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package version | ||
|
||
// Version is the current topicctl version. | ||
const Version = "1.4.0" | ||
const Version = "1.5.0" |