Skip to content

Commit 707166b

Browse files
committed
fix: Use bookworm
1 parent b50f951 commit 707166b

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.github/workflows/release-test.yml

+37
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,40 @@ jobs:
119119
args: --config .goreleaser/windows.yml --clean --snapshot --skip=publish
120120
env:
121121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122+
123+
dockerimage-test:
124+
runs-on: ubuntu-latest
125+
env:
126+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
127+
steps:
128+
- name: Check out source code
129+
uses: actions/checkout@v4
130+
with:
131+
fetch-depth: 0
132+
133+
- name: Get latest version
134+
id: latest_version
135+
run: |
136+
echo -n 'version=' > $GITHUB_OUTPUT
137+
gh release list --limit 1 | cut -f 1 >> $GITHUB_OUTPUT
138+
cat $GITHUB_OUTPUT
139+
140+
- name: Set up QEMU
141+
uses: docker/setup-qemu-action@v3
142+
143+
- name: Set up Docker Buildx
144+
uses: docker/setup-buildx-action@v3
145+
146+
- name: Login to Docker Hub
147+
uses: docker/login-action@v3
148+
with:
149+
username: ${{ secrets.DOCKERHUB_USERNAME }}
150+
password: ${{ secrets.DOCKERHUB_TOKEN }}
151+
152+
- name: Build and push
153+
uses: docker/build-push-action@v6
154+
with:
155+
context: .
156+
file: Dockerfile
157+
platforms: linux/amd64,linux/arm64
158+
push: false

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1-bullseye AS builder
1+
FROM golang:1-bookworm AS builder
22

33
WORKDIR /workdir/
44
COPY . /workdir/
@@ -9,7 +9,7 @@ RUN update-ca-certificates
99

1010
RUN make build
1111

12-
FROM debian:bullseye-slim
12+
FROM debian:bookworm-slim
1313

1414
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1515
COPY --from=builder /workdir/tbls ./usr/bin

0 commit comments

Comments
 (0)