Skip to content

image: publish a Chainguard variant and pick it with one config key #405

Closed

Description

@lex00

sql-yodeler's release should publish a Chainguard variant of its CI image beside the Debian one, and a project's config should pick between them with one key.

Depends on INTENTIUS/chant#5445 (base on ProductImageSpec) reaching a chant release, and follows INTENTIUS/chant#5446 so both images are scanned before the stage. Epic: INTENTIUS/chant#5452.

What exists

  • .github/src/image.ts builds ghcr.io/intentius/sql-yodeler with chant's productImageStages.
  • ci.image in the project's config names the image every job runs in, pinned by digest; a tag alone is refused.
  • The lint job runs in a node:22-bookworm container, which is not the product image.

What it should be

Docs

  • docs-site configuration.md: the key, its default, and how it relates to ci.image.
  • docs-site forges.mdx: which jobs switch and which (lint) do not.
  • CONTRIBUTING.md: building and checking both images.

Done when

  • The release workflow renders both sets, and a release a person cuts publishes both images, and the key picks one with no other config change.
  • A test renders the pipelines with each value and checks the digest they name.
  • The pages above are updated.

Activity

  1. added
    epic:ci-hardening
    on Nov 21, 2026
  2. lex00 commented on Nov 22, 2026

    @lex00
    ContributorAuthor

    Checked against the code while building this. Three claims differ.

    1. The issue says the key picks the variant yodel ci renders when ci.image is not set, with Debian as the default. Without ci.image, yodel ci renders the stock node:22-bookworm container and runs npm ci in each job. That is not the Debian product image. The build keeps it as the behaviour when the key is absent, so no existing project changes. ci.imageBase: "debian" picks the Debian product image explicitly, and "chainguard" the Chainguard one.

    2. The issue says the lint job's node:22-bookworm container is left as it is. In the rendered pipelines the lint job takes the same container as every other job, so with ci.image set it already runs in the product image (lintJob in src/ci/render.ts uses the toolchain's image). The stock container appears only when neither ci.image nor ci.imageBase is set. The docs say that. The lint job of this repository's own ci.yml uses setup-node and neither image.

    3. The package carried no image digests, so a key could not name an image by digest. The release's package build now writes dist/image-digests.json with both digests (the npm publish target pins it), and the key reads it. A yodel with no such file, such as a clone or the yodel inside the image, takes the digest the committed pipelines already name, so yodel ci --check still runs in the image.

    The key is ci.imageBase, camelCase as refGate and approvalRules are in yodel.config.ts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:ci-hardening

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions