ci(release): build and publish the SQLite image variant (#92) #93

Merged
jfro merged 1 commit from feat/92-sqlite-image into main 2026-11-28 19:14:54 +00:00
Owner

What changed

PR #93 makes release CI build a db × platform matrix and publish one manifest per database, and gives the release notes a pull line for both images. Its publish_release test fails on main and passes on the branch (C31). metadata-action run locally gives the agreed tags (C32), and CI, including the new image builds for both variants, is green (C33). mix precommit passes with 1313 tests.

Fixes #92

Red, then green

  • The release notes give a docker pull line for both the PostgreSQL image (VERSION) and the SQLite image (VERSION-sqlite), including pre-releases.: bash -c 'source ~/.rmenv; eval "$(mise activate bash --shims)"; env -u FORGEJO_TOKEN MIX_TEST_PARTITION=_92 mix test test/release/publish_release_test.exs'
    • fails on the base (e350dc2): exit 1
    • passes on the branch (5fc4c41): exit 0

Checks

  • Running docker/metadata-action v5 locally with release.yml's merge-job flavor and tags for v2026.12.1 gives Postgres 2026.12.1, 2026.12, latest (unchanged) and SQLite 2026.12.1-sqlite, 2026.12-sqlite, sqlite. (Upper Wolfjaw): /home/peak/work/lamplighter-v1-4/checks/meta92.sh /home/peak/work/lamplighter-v1-4/wt-92, exit 0
  • CI on the PR head 5fc4c41 is green: tests on Postgres and SQLite, plus the new image jobs that docker-build both variants (LAMPLIGHTER_DB=postgres and sqlite) without pushing. (Upper Wolfjaw): curl -sS -H "Authorization: token $FORGEJO_TOKEN" https://git.knope.dev/api/v1/repos/jfro/lamplighter/commits/5fc4c41/status | jq -e '.state=="success" and ([.statuses[].context]|map(select(test("image \\((postgres|sqlite)\\)")))|length==2)', exit 0
  • I read the diff (matrix, per-db cache and digest scoping, tags, Dockerfile arg) and re-ran the release tests; it changes only workflows and docs, so it goes live nowhere. Untested: a real v* tag run (arm64 SQLite build, push, manifests). (Prover): bash -c 'source ~/.rmenv; eval "$(mise activate bash --shims)"; cd /home/peak/work/lamplighter-v1-4/wt-92 && env -u FORGEJO_TOKEN MIX_TEST_PARTITION=_92 mix test test/release/publish_release_test.exs', exit 0

Shipping it

  • Goes live when it merges: no. Merging only changes workflows and docs on main; images and releases are published only when Jeremy pushes a v* tag with mise run release.
  • Undo: a revert puts it back.
  • Not tried on the real thing: The tag-triggered release run itself: the arm64 SQLite build, the registry push, and manifest creation only happen on a real v* tag. The PR CI builds amd64 images only, without pushing.
  • For later: Like latest today, the plain sqlite tag also moves on pre-release tags (for example v2026.12.2-rc.1), because raw tags don't skip pre-releases. The first release builds SQLite without a cache, so it will be slower.

Prover

Passed (Sonnet): I read the diff (matrix, per-db cache and digest scoping, tags, Dockerfile arg) and re-ran the release tests; it changes only workflows and docs, so it goes live nowhere. Untested: a real v* tag run (arm64 SQLite build, push, manifests).

Every command above was run by Fortysix's Basecamp itself, on the branch named.

## What changed PR #93 makes release CI build a db × platform matrix and publish one manifest per database, and gives the release notes a pull line for both images. Its publish_release test fails on main and passes on the branch (C31). metadata-action run locally gives the agreed tags (C32), and CI, including the new image builds for both variants, is green (C33). mix precommit passes with 1313 tests. Fixes #92 ## Red, then green - The release notes give a docker pull line for both the PostgreSQL image (VERSION) and the SQLite image (VERSION-sqlite), including pre-releases.: `bash -c 'source ~/.rmenv; eval "$(mise activate bash --shims)"; env -u FORGEJO_TOKEN MIX_TEST_PARTITION=_92 mix test test/release/publish_release_test.exs'` - fails on the base (e350dc2): exit 1 - passes on the branch (5fc4c41): exit 0 ## Checks - Running docker/metadata-action v5 locally with release.yml's merge-job flavor and tags for v2026.12.1 gives Postgres 2026.12.1, 2026.12, latest (unchanged) and SQLite 2026.12.1-sqlite, 2026.12-sqlite, sqlite. (Upper Wolfjaw): `/home/peak/work/lamplighter-v1-4/checks/meta92.sh /home/peak/work/lamplighter-v1-4/wt-92`, exit 0 - CI on the PR head 5fc4c41 is green: tests on Postgres and SQLite, plus the new image jobs that docker-build both variants (LAMPLIGHTER_DB=postgres and sqlite) without pushing. (Upper Wolfjaw): `curl -sS -H "Authorization: token $FORGEJO_TOKEN" https://git.knope.dev/api/v1/repos/jfro/lamplighter/commits/5fc4c41/status | jq -e '.state=="success" and ([.statuses[].context]|map(select(test("image \\((postgres|sqlite)\\)")))|length==2)'`, exit 0 - I read the diff (matrix, per-db cache and digest scoping, tags, Dockerfile arg) and re-ran the release tests; it changes only workflows and docs, so it goes live nowhere. Untested: a real v* tag run (arm64 SQLite build, push, manifests). (Prover): `bash -c 'source ~/.rmenv; eval "$(mise activate bash --shims)"; cd /home/peak/work/lamplighter-v1-4/wt-92 && env -u FORGEJO_TOKEN MIX_TEST_PARTITION=_92 mix test test/release/publish_release_test.exs'`, exit 0 ## Shipping it - Goes live when it merges: no. Merging only changes workflows and docs on main; images and releases are published only when Jeremy pushes a v* tag with mise run release. - Undo: a revert puts it back. - Not tried on the real thing: The tag-triggered release run itself: the arm64 SQLite build, the registry push, and manifest creation only happen on a real v* tag. The PR CI builds amd64 images only, without pushing. - For later: Like `latest` today, the plain `sqlite` tag also moves on pre-release tags (for example v2026.12.2-rc.1), because raw tags don't skip pre-releases. The first release builds SQLite without a cache, so it will be slower. ## Prover Passed (Sonnet): I read the diff (matrix, per-db cache and digest scoping, tags, Dockerfile arg) and re-ran the release tests; it changes only workflows and docs, so it goes live nowhere. Untested: a real v* tag run (arm64 SQLite build, push, manifests). Every command above was run by Fortysix's Basecamp itself, on the branch named.
jfro added this to the v1.4 milestone 2026-11-28 18:26:39 +00:00
ci(release): build and publish the SQLite image variant (#92)
All checks were successful
CI / image (postgres) (pull_request) Successful in 1m17s
CI / test (postgres) (pull_request) Successful in 1m33s
CI / test (sqlite) (pull_request) Successful in 1m40s
CI / image (sqlite) (pull_request) Successful in 1m8s
5fc4c41883
Release builds a db x platform matrix (postgres, sqlite) with LAMPLIGHTER_DB
as a build arg, separate cache scopes and digest artifacts, and one manifest
per database. Postgres keeps its tags; SQLite gets <version>-sqlite,
<major>.<minor>-sqlite and sqlite. The release notes give a pull line for
both images, CI builds both images on PRs without pushing, and the README
documents the SQLite image.
jfro merged commit 55284a90c6 into main 2026-11-28 19:14:54 +00:00
jfro deleted branch feat/92-sqlite-image 2026-11-28 19:14:55 +00:00
Sign in to join this conversation.
No description provided.