Skip to content

Commit ab9e2e8

Browse files
committed
upgrade Go version to 1.24
1 parent 8492b62 commit ab9e2e8

File tree

5 files changed

+21
-22
lines changed

5 files changed

+21
-22
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: build
33
on:
44
push:
55
branches:
6-
- '**'
6+
- "**"
77

88
jobs:
99
build:
@@ -12,9 +12,9 @@ jobs:
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

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: release
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "*"
77

88
permissions:
99
contents: write
@@ -20,9 +20,9 @@ jobs:
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

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM golang:1.23-alpine3.21 AS builder
1+
FROM --platform=$BUILDPLATFORM golang:1.24-alpine3.21 AS builder
22
RUN apk add alpine-sdk ca-certificates
33

44
ARG TARGETOS
@@ -24,17 +24,16 @@ RUN mkdir -p build && \
2424
FROM --platform=$BUILDPLATFORM alpine:3.21
2525
RUN apk add --no-cache ca-certificates libcap
2626
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
3333

3434
COPY --from=builder /go/src/github.com/grepplabs/kafka-proxy/build /opt/kafka-proxy/bin
3535
RUN setcap 'cap_net_bind_service=+ep' /opt/kafka-proxy/bin/kafka-proxy
3636

3737
USER kafka-proxy
3838
ENTRYPOINT ["/opt/kafka-proxy/bin/kafka-proxy"]
3939
CMD ["--help"]
40-

Dockerfile.all

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM golang:1.23-alpine3.21 AS builder
1+
FROM --platform=$BUILDPLATFORM golang:1.24-alpine3.21 AS builder
22
RUN apk add alpine-sdk ca-certificates
33

44
ARG TARGETOS
@@ -30,12 +30,12 @@ RUN mkdir -p build && \
3030
FROM --platform=$BUILDPLATFORM alpine:3.21
3131
RUN apk add --no-cache ca-certificates libcap
3232
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
3939

4040
COPY --from=builder /go/src/github.com/grepplabs/kafka-proxy/build /opt/kafka-proxy/bin
4141
RUN setcap 'cap_net_bind_service=+ep' /opt/kafka-proxy/bin/kafka-proxy && \

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/grepplabs/kafka-proxy
22

3-
go 1.23
3+
go 1.24
44

55
require (
66
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5

0 commit comments

Comments
 (0)