Skip to content

ci: run container jobs on ci-base tagged by Dockerfile content - #1693

Merged
aaylward merged 2 commits into
mainfrom
claude/great-gauss-lqkl3i
Oct 25, 2026
Merged

aaylward merged 2 commits into
mainfrom
claude/great-gauss-lqkl3i

Conversation

@aaylward

Copy link
Copy Markdown
Collaborator

CI's container jobs ran on ci-base:latest, which only rebuilt from main. So a PR that edited Dockerfile.ci tested the old image; #1692 needed two TEMP commits to test itself.

  • scripts/ci-image-tag: df- + 12 hex of sha256(Dockerfile.ci). The Dockerfile COPYs nothing, so its bytes are the whole input.
  • build-ci-image.yml is now a reusable workflow. It resolves the tag, and builds and pushes it only if the tag is missing. The weekly and manual runs rebuild it regardless, for security updates.
  • branch.yml and publish.yml call it first. Every container job needs: ci-image and runs on its output. Unchanged Dockerfile: one short job (login + manifest inspect).
  • :latest is no longer pushed or read. Nothing outside the workflows referenced it.
  • scripts/test-ci-image-tag (in test-deploy) pins the tag: stable, moves with the Dockerfile only, cwd-independent. It also checks that no workflow references ci-base:latest. It landed first and failed for the right reasons.

This PR's own first run exercises the build path: df-4e954804b359 doesn't exist yet.

Locally: scripts/actionlint (and a mutation: a misspelled needs.ci-image.outputs key fails it), scripts/test-actionlint, scripts/test-ci-image-tag.

Fork PRs get a read-only token. They still run when the tag exists; one that edits the Dockerfile can't push its image.

Review panel: not run.


Generated by Claude Code

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
1d4-web 4ecffdf Commit Preview URL

Branch Preview URL
Oct 24 2026, 10:26 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
iili 4ecffdf Commit Preview URL

Branch Preview URL
Oct 24 2026, 10:26 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ast-lol 4ecffdf Commit Preview URL

Branch Preview URL
Oct 24 2026, 10:27 PM

@aaylward
aaylward merged commit 003544b into main Oct 25, 2026
25 checks passed
@aaylward
aaylward deleted the claude/great-gauss-lqkl3i branch October 25, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants