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
3
3
on :
4
4
push :
5
5
branches :
6
- - ' ** '
6
+ - " ** "
7
7
8
8
jobs :
9
9
build :
12
12
- name : Checkout
13
13
uses : actions/checkout@v3
14
14
- name : Setup go
15
- uses : actions/setup-go@v4
15
+ uses : actions/setup-go@v5
16
16
with :
17
- go-version : ' 1.23 '
17
+ go-version-file : go.mod
18
18
check-latest : true
19
19
- run : go version
20
20
- name : Run build
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: release
3
3
on :
4
4
push :
5
5
tags :
6
- - ' * '
6
+ - " * "
7
7
8
8
permissions :
9
9
contents : write
20
20
describe=$(git describe --tags --always --dirty)
21
21
echo "GIT_COMMIT_REF_NAME=$describe" >> $GITHUB_ENV
22
22
- name : Setup go
23
- uses : actions/setup-go@v4
23
+ uses : actions/setup-go@v5
24
24
with :
25
- go-version : ' 1.23 '
25
+ go-version-file : go.mod
26
26
check-latest : true
27
27
- run : go version
28
28
- 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
2
2
RUN apk add alpine-sdk ca-certificates
3
3
4
4
ARG TARGETOS
@@ -24,17 +24,16 @@ RUN mkdir -p build && \
24
24
FROM --platform=$BUILDPLATFORM alpine:3.21
25
25
RUN apk add --no-cache ca-certificates libcap
26
26
RUN 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
33
33
34
34
COPY --from=builder /go/src/github.com/grepplabs/kafka-proxy/build /opt/kafka-proxy/bin
35
35
RUN setcap 'cap_net_bind_service=+ep' /opt/kafka-proxy/bin/kafka-proxy
36
36
37
37
USER kafka-proxy
38
38
ENTRYPOINT ["/opt/kafka-proxy/bin/kafka-proxy" ]
39
39
CMD ["--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
2
2
RUN apk add alpine-sdk ca-certificates
3
3
4
4
ARG TARGETOS
@@ -30,12 +30,12 @@ RUN mkdir -p build && \
30
30
FROM --platform=$BUILDPLATFORM alpine:3.21
31
31
RUN apk add --no-cache ca-certificates libcap
32
32
RUN 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
39
39
40
40
COPY --from=builder /go/src/github.com/grepplabs/kafka-proxy/build /opt/kafka-proxy/bin
41
41
RUN setcap 'cap_net_bind_service=+ep' /opt/kafka-proxy/bin/kafka-proxy && \
Original file line number Diff line number Diff line change 1
1
module github.com/grepplabs/kafka-proxy
2
2
3
- go 1.23
3
+ go 1.24
4
4
5
5
require (
6
6
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
You can’t perform that action at this time.
0 commit comments