Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
version: latest
version: '~> v2'
args: release --clean --debug
env:
# create personal access token: https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line
Expand Down
42 changes: 26 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- go mod download
Expand All @@ -17,7 +19,7 @@ archives:
- id: default
format_overrides:
- goos: windows
format: zip
formats: [ 'zip' ]
files:
- LICENSE.md
- CHANGELOG.md
Expand All @@ -40,7 +42,7 @@ release:
disable: false
draft: false

brews:
homebrew_casks:
-
repository:
owner: deviceinsight
Expand All @@ -50,7 +52,7 @@ brews:
name: goreleaserbot
email: [email protected]

folder: Formula
directory: Formula

homepage: https://www.device-insight.com/

Expand Down Expand Up @@ -80,21 +82,29 @@ winget:
name: winget-pkgs
branch: master

dockers:
-
skip_push: false
dockers_v2:
- id: ubuntu
dockerfile: Dockerfile.Ubuntu
image_templates:
- "deviceinsight/kafkactl:latest-ubuntu"
- "deviceinsight/kafkactl:{{ .Tag }}-ubuntu"
- "deviceinsight/kafkactl:latest"
- "deviceinsight/kafkactl:{{ .Tag }}"
-
skip_push: false
images:
- "deviceinsight/kafkactl"
tags:
- "latest-ubuntu"
- "{{ .Tag }}-ubuntu"
- "latest"
- "{{ .Tag }}"
platforms:
- linux/amd64
- linux/arm64
- id: scratch
dockerfile: Dockerfile.Scratch
image_templates:
- "deviceinsight/kafkactl:latest-scratch"
- "deviceinsight/kafkactl:{{ .Tag }}-scratch"
images:
- "deviceinsight/kafkactl"
tags:
- "latest-scratch"
- "{{ .Tag }}-scratch"
platforms:
- linux/amd64
- linux/arm64

publishers:
- name: aur-kafkactl
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- [#306](https://github.com/deviceinsight/kafkactl/pull/306) Support building arm image by updating to goreleaser v2

## 5.15.0 - 2025-11-13

Expand Down
9 changes: 5 additions & 4 deletions Dockerfile.Scratch
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM alpine:latest as certs
FROM alpine:latest AS certs
RUN apk --update --no-cache add ca-certificates && update-ca-certificates

FROM scratch
ENV USER docker
COPY kafkactl /
ARG TARGETPLATFORM
ENV USER=docker
COPY $TARGETPLATFORM/kafkactl /
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

# add extra paths for files
ENV EXTRA_PATHS "/etc/ssl/certs/kafkactl"
ENV EXTRA_PATHS="/etc/ssl/certs/kafkactl"

ENTRYPOINT ["/kafkactl"]
9 changes: 5 additions & 4 deletions Dockerfile.Ubuntu
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:latest
ENV USER docker
COPY kafkactl /usr/local/bin
ARG TARGETPLATFORM
ENV USER=docker
COPY $TARGETPLATFORM/kafkactl /usr/local/bin
RUN apt-get update && apt-get install -y bash-completion

# install bash completion script
Expand All @@ -22,14 +23,14 @@ RUN echo '[[ -n $TERM_HEIGHT ]] && stty rows $TERM_HEIGHT cols $TERM_WIDTH' >> /
# Install CA certificates
RUN apt-get update && apt-get install -y \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*

WORKDIR /home/kafkactl
RUN chown -R kafkactl:kafkactl /home/kafkactl

USER kafkactl

# add extra paths for files
ENV EXTRA_PATHS "/etc/ssl/certs/kafkactl"
ENV EXTRA_PATHS="/etc/ssl/certs/kafkactl"

ENTRYPOINT ["kafkactl"]