Repository navigation
ci: build and publish the Docker image from a release tag - #50
Merged
Merged
Conversation
Add a docker workflow that builds the image natively on an amd64 and an arm64 runner and, on a v* tag, pushes both by digest and assembles the multi-arch ghcr.io/codelibs/fessctl:<version> tag. The image used to be pushed by hand, and building the amd64 stage under QEMU on Apple Silicon segfaults in `uv pip install`. - the tag has to match the pyproject.toml version, like publish.yml - only the release tag is pushed (no latest), as the docs tell users to name a release tag - on a pull request touching the Dockerfile, src or the workflow, the image is only built on both architectures, not pushed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Builds and publishes
ghcr.io/codelibs/fessctl:<version>from av*tag, replacing the manual multi-arch push.buildjob: native runners (ubuntu-24.04for amd64,ubuntu-24.04-armfor arm64); on a tag each image is pushed by digest. Building amd64 under QEMU on Apple Silicon segfaults inuv pip install, which is why the manual push failed.mergejob: assembles the two digests into the<version>tag (docker buildx imagetools create) and inspects the result.pyproject.tomlversion (same check aspublish.yml).workflow_dispatchrequires av*tag ref.latest(the docs tell users to name a release tag).src/,pyproject.tomlor this workflow, the image is only built on both architectures and not pushed.Verified
actionlintis clean.Not verified
ghcr.io/codelibs/fessctlpackage to grant this repository write access (package settings -> Manage Actions access); the existing package was pushed by hand, so that link may have to be added once.