Repository navigation
ci: release each plugin as its container image, from a tag - #20
Merged
Merged
Conversation
A tag plugins/<name>/v<version> on a commit of main releases that plugin alone: its integration tests run in the test stage of its image on an amd64 and an arm64 runner, each pushes its runtime image by digest, and the two are joined into one index on ghcr.io/mycroblog/<name>, tagged with the version and its minor line (and its major line from 1.0.0 on), with its provenance attested. A pre-release gets its version only, and there is no latest, since a plugin speaks the protocol of the version of mycroblog/my it pins. The workflow refuses a tag off main and a version already published. No GitHub release is made: the images are the release. The READMEs say how to release, which tags an image gets, how to tell which plugins changed since their last release, and how to verify an image; the quick starts name 0.1 instead of latest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TcfE6PB6wKbbToXs5fq58g
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
Plugins are released as container images only, one plugin at a time, from a tag. No GitHub releases, and no deb/rpm/pacman packages for now.
plugins/<name>/v<version>on a commit of main, such asplugins/my-media-ffmpeg/v0.1.0. Its path matches Go's convention for a module in a subdirectory.v<major>.<minor>.<patch>[-<pre-release>]plugins/<name>/Dockerfileubuntu-24.04andubuntu-24.04-arm), not under QEMU:teststage, so arm64 is tested on arm64 for the first time (CI tests amd64 only);runtimeimage by digest.ghcr.io/mycroblog/<name>;actions/attestand pushes the attestation to the registry.Image tags
plugins/<name>/v0.1.20.1.2,0.1plugins/<name>/v1.2.31.2.3,1.2,1plugins/<name>/v0.2.0-rc.10.2.0-rc.1onlyThere is no
latest. A plugin speaks the protocol of themyversion thatbuf.gen.yamlpins, so a deployment should name the version it runs. Each image records that version in the labeldev.mycroblog.plugin.protocol. The plugin READMEs' quick starts now name:0.1instead of:latest. Their "Not released yet" note stays until the first release.BuildKit's own provenance and SBOM are off (
provenance: false). They would addunknown/unknownentries to the index, and the attestation in publish covers provenance.README
The Releases section now covers:
affected -base plugins/<name>/v<last>, with no new tool, though a change to the harness lists every plugingh attestation verifyVerified
actionlint(with shellcheck) passes on every workflow.v0.1.0,v1.2.3andv0.2.0-rc.1, and gives the tags above;v01.0.0,0.1.0with nov, a tag withoutplugins/, and an unknown plugin.docker, passes the right tags, annotations and digests toimagetools create.Not verified
debian:trixie-slimdigest pinned in the Dockerfiles is a multi-architecture index. Docker Hub was out of reach. Dependabot normally pins the index, but if it is the amd64 manifest, the arm64 build fails atFROM../scripts/lint.shwas not run: Go 1.27.4 could not be downloaded in this session. This PR changes no Go code, and CI runs lint.After merging
plugins/*/v*that only maintainers can create or delete would stop anyone else from releasing.nobodywith-socket-mode 0660. Amythat runs on the host, not in a container, cannot open the socket unless its user matches. A note on--user, or a Podman Quadlet example, would help people who installmyas a binary.Generated by Claude Code