Skip to content

feat(release): publish an Alpine-based Docker image - #68

Merged
reteps merged 1 commit into
mainfrom
feat/alpine-image
Nov 7, 2026
Merged

reteps merged 1 commit into
mainfrom
feat/alpine-image

Conversation

@reteps

@reteps reteps commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes #62. This uses the patch attached to the issue by @mat813.

  • release.yaml runs a second ko build with KO_DEFAULTBASEIMAGE=alpine:3, tagged <version>-alpine, plus alpine on releases. The default image is unchanged.
  • README documents the variant and gives a GitLab CI snippet. The snippet needs entrypoint: [""] because the image's entrypoint is the dockerfmt binary.

Test plan

  • Built the Alpine variant locally with ko (KO_DEFAULTBASEIMAGE=alpine:3) and ran it with podman. sh is present, PATH includes /ko-app, and which dockerfmt resolves to /ko-app/dockerfmt. dockerfmt version works and stdin formatting works.

🤖 Generated with Claude Code

The default ko image has no shell, so it can't be used by CI systems that
run job scripts inside the image (e.g. GitLab CI's docker executor).
Publish the same binary on an alpine:3 base as :<version>-alpine and
:alpine, and document GitLab CI usage.

Patch from the issue reporter.

Fixes #62

Co-Authored-By: mat813 <75783+mat813@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@reteps
reteps merged commit 456f5f0 into main Nov 7, 2026
3 checks passed
@reteps
reteps deleted the feat/alpine-image branch November 14, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to use docker image with gitlab ci

1 participant