File tree Expand file tree Collapse file tree 5 files changed +21
-22
lines changed Expand file tree Collapse file tree 5 files changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: build
33on :
44 push :
55 branches :
6- - ' ** '
6+ - " ** "
77
88jobs :
99 build :
1212 - name : Checkout
1313 uses : actions/checkout@v3
1414 - name : Setup go
15- uses : actions/setup-go@v4
15+ uses : actions/setup-go@v5
1616 with :
17- go-version : ' 1.23 '
17+ go-version-file : go.mod
1818 check-latest : true
1919 - run : go version
2020 - name : Run build
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: release
33on :
44 push :
55 tags :
6- - ' * '
6+ - " * "
77
88permissions :
99 contents : write
2020 describe=$(git describe --tags --always --dirty)
2121 echo "GIT_COMMIT_REF_NAME=$describe" >> $GITHUB_ENV
2222 - name : Setup go
23- uses : actions/setup-go@v4
23+ uses : actions/setup-go@v5
2424 with :
25- go-version : ' 1.23 '
25+ go-version-file : go.mod
2626 check-latest : true
2727 - run : go version
2828 - name : Run build and test
Original file line number Diff line number Diff line change 1- FROM --platform=$BUILDPLATFORM golang:1.23 -alpine3.21 AS builder
1+ FROM --platform=$BUILDPLATFORM golang:1.24 -alpine3.21 AS builder
22RUN apk add alpine-sdk ca-certificates
33
44ARG TARGETOS
@@ -24,17 +24,16 @@ RUN mkdir -p build && \
2424FROM --platform=$BUILDPLATFORM alpine:3.21
2525RUN apk add --no-cache ca-certificates libcap
2626RUN adduser \
27- --disabled-password \
28- --gecos "" \
29- --home "/nonexistent" \
30- --shell "/sbin/nologin" \
31- --no-create-home \
32- kafka-proxy
27+ --disabled-password \
28+ --gecos "" \
29+ --home "/nonexistent" \
30+ --shell "/sbin/nologin" \
31+ --no-create-home \
32+ kafka-proxy
3333
3434COPY --from=builder /go/src/github.com/grepplabs/kafka-proxy/build /opt/kafka-proxy/bin
3535RUN setcap 'cap_net_bind_service=+ep' /opt/kafka-proxy/bin/kafka-proxy
3636
3737USER kafka-proxy
3838ENTRYPOINT ["/opt/kafka-proxy/bin/kafka-proxy" ]
3939CMD ["--help" ]
40-
Original file line number Diff line number Diff line change 1- FROM --platform=$BUILDPLATFORM golang:1.23 -alpine3.21 AS builder
1+ FROM --platform=$BUILDPLATFORM golang:1.24 -alpine3.21 AS builder
22RUN apk add alpine-sdk ca-certificates
33
44ARG TARGETOS
@@ -30,12 +30,12 @@ RUN mkdir -p build && \
3030FROM --platform=$BUILDPLATFORM alpine:3.21
3131RUN apk add --no-cache ca-certificates libcap
3232RUN adduser \
33- --disabled-password \
34- --gecos "" \
35- --home "/nonexistent" \
36- --shell "/sbin/nologin" \
37- --no-create-home \
38- kafka-proxy
33+ --disabled-password \
34+ --gecos "" \
35+ --home "/nonexistent" \
36+ --shell "/sbin/nologin" \
37+ --no-create-home \
38+ kafka-proxy
3939
4040COPY --from=builder /go/src/github.com/grepplabs/kafka-proxy/build /opt/kafka-proxy/bin
4141RUN setcap 'cap_net_bind_service=+ep' /opt/kafka-proxy/bin/kafka-proxy && \
Original file line number Diff line number Diff line change 11module github.com/grepplabs/kafka-proxy
22
3- go 1.23
3+ go 1.24
44
55require (
66 github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
You can’t perform that action at this time.
0 commit comments