Skip to content

ci(devcontainer): add verified GHCR publication - #21

Draft
0yi0 wants to merge 4 commits into
mainfrom
devcontainer-ghcr
Draft

0yi0 wants to merge 4 commits into
mainfrom
devcontainer-ghcr

Conversation

@0yi0

@0yi0 0yi0 commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Add verified GHCR devcontainer publication

Summary

This PR establishes an initial, verified GHCR publication path for the CI infrastructure image:

  • Temporarily removes the scheduled workflow until main-branch rollout is verified.
  • Publishes native AMD64 and ARM64 images to GHCR for default-branch merges and pull requests with base image changes.
  • Passes the verified immutable GHCR digest to Ubuntu and manylinux build jobs when a new base image is produced.
  • Preserves the existing Docker Hub publication and falls back to Docker Hub when no new base image is built.

Validation

  • python3 -m unittest discover -s .github/tests/devcontainer -v (7 passed)
  • actionlint -shellcheck= .github/workflows/devcontainer.yml .github/workflows/docker.yml (passed)
  • git diff --check (passed)

Runtime Verification

  • Confirm initial default-branch package creation and public package visibility.
  • Verify anonymous digest-qualified pulls succeed on both AMD64 and ARM64.
  • Confirm repository package permissions for fork-origin pull requests.

Deferred

  • Fork-origin PR package permissions; the current limitation is documented inline in docker.yml.
  • OCI attestation descriptor handling in verify_index.
  • Candidate cleanup and automated registry retention.

0yi0 added 4 commits November 27, 2026 15:03
Keep GHCR publication and consumer migration explicit until the pull request has been verified on the default branch.

Signed-off-by: Yi Huang <yi@secondstate.io>
Publish and verify native durable or pull request images through a reusable workflow, returning an immutable image reference without changing consumers yet.

Signed-off-by: Yi Huang <yi@secondstate.io>
Use the verified GHCR reference when this run builds a replacement CI base image, while preserving the existing Docker Hub image when no replacement is expected.

Signed-off-by: Yi Huang <yi@secondstate.io>
Keep README focused on repository layout and leave event-specific workflow constraints inline.

Signed-off-by: Yi Huang <yi@secondstate.io>
@0yi0
0yi0 force-pushed the devcontainer-ghcr branch from eee3e6b to fecec5f Compare November 27, 2026 07:05
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.

1 participant