Repository navigation
ci: build the Docker image on PRs, push releases by digest, share the tarball script - #575
Merged
Merged
Conversation
LeMyst
marked this pull request as ready for review
September 28, 2026 18:22
This was referenced Sep 28, 2026
… tarball script - New docker.yml builds the image (docker-dev profile, reading the release's layer cache) for pull requests that touch the Dockerfile, lockfiles or manifests, then checks `cook --version` and that the server answers. Until now only a release built it. - The release pushes each platform image by digest and assembles the manifest from those, instead of the public `build-0`/`build-1` tags it left behind in GHCR. - packaging/source-tarball.sh is now the one definition of the release source drop (git archive + web assets + the check that they made it in). The release job and build-rpm.sh call it, and rpm.yaml lets build-rpm.sh make its own, so the RPM workflow tests the release path. - Stale references: the `develop` trigger in test.yml, the missing ui-tests.yml in CLAUDE.md (which now says how to run the workflow linters locally), and the action's template comments in claude.yml. Co-Authored-By: Claude Opus 5.5 <[email protected]>
LeMyst
force-pushed
the
ci/workflow-chores
branch
from
September 28, 2026 20:43
e86d7e2 to
e953887
Compare
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.
Closes #574.
What changes
docker.yml(new). Runs on pull requests that touchDockerfile,.dockerignore,docker-entrypoint.sh, the Cargo manifests or lockfile, orpackage*.json.CARGO_PROFILE=docker-dev: the same Dockerfile, but thin LTO.cook --version, starts the server, and waits for/to answer.Release images pushed by digest.
docker_publishpushes each platform image withpush-by-digest=trueand hands the digest todocker_mergeas a short-lived artifact. The artifact is nameddocker-digest-*, so the release'scook-*pattern does not attach it.docker_mergebuilds:<version>and:latestfrom those digests, then inspects the result.docker_publishis removed.build-0/build-1tags in GHCR need deleting by hand once; nothing recreates them.One source tarball script.
packaging/source-tarball.sh <dir>makescook-<version>-source.tar.gz(git archiveplus the two web assets) and checks the assets are in it.source_tarballjob calls it, and stops if the tag andCargo.tomldisagree on the version.build-rpm.shcalls it when not given a tarball, andrpm.yamlnow relies on that. So the RPM check exercises the release path, and it runs on anypackaging/**change.Stale references.
developremoved from thetest.ymltriggers.UI Testsjob instead of the non-existentui-tests.yml, and says how to run actionlint/zizmor locally.claude.ymltemplate comments trimmed.Not done: Dependabot for Docker. The base images use floating tags (
node:lts-bookworm-slim,rust:bookworm,debian:bookworm-slim), which Dependabot's docker updater leaves alone. It would only act on version or digest pins. Pinning them is a reproducibility-versus-freshness decision for another PR.Testing
packaging/source-tarball.sh: I compared its output with the v0.37.0 release asset. The prefix and layout are the same, both web assets are in, and there is nonode_modules/ortarget/; the listing differs only in files changed since v0.37.0. shellcheck is clean on it and onbuild-rpm.sh.CARGO_PROFILE=docker-devand ran the smoke-test commands. Output:cookcli 0.37.0 - in food we trust,server answers.RPMandDockerchecks run the RPM build and the image build end to end.🤖 Generated with Claude Code