Skip to content

ci(devcontainer): add GHCR publication - #21

Merged
hydai merged 5 commits into
mainfrom
devcontainer-ghcr
Dec 1, 2026
Merged

hydai merged 5 commits into
mainfrom
devcontainer-ghcr

Conversation

@0yi0

@0yi0 0yi0 commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This PR establishes a GHCR publication path for the CI infrastructure image:

  • Keeps the scheduled workflow disabled while the publication path is evaluated on the default branch.
  • Publishes native AMD64 and ARM64 images to GHCR for default-branch merges and pull requests with base image changes.
  • Passes the immutable GHCR digest to Ubuntu and manylinux build jobs when a new base image is produced.
  • Reports the published tag and immutable digest in the GitHub Actions job summary after publication succeeds.
  • Preserves the existing Docker Hub publication and falls back to Docker Hub when no new base image is built.

This PR also incorporates the WasmEdge Docker image definitions and dependency updates from #22.

Validation

  • python3 -m unittest discover -s .github/tests/devcontainer -v (3 passed)
  • git diff --check (passed)

Post-merge Checks

  • After merging to the default branch, confirm that the workflow creates the expected GHCR package and that its visibility matches the repository's publication policy.
  • Attempt digest-qualified pulls with the appropriate access on both AMD64 and ARM64 and confirm that both architectures succeed.
  • For a pull request from a fork, confirm whether the workflow has the package permissions required for its intended publication and consumption paths.

Deferred

  • Package permissions for pull requests from forks; the current limitation is documented inline in docker.yml.
  • Cleanup of pull-request images and automated registry retention, for example with an action such as dataaxiom/ghcr-cleanup-action.

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>
@0yi0
0yi0 force-pushed the devcontainer-ghcr branch 2 times, most recently from 88d4fd5 to f4cdc50 Compare November 30, 2026 10:16
0yi0 added 4 commits November 30, 2026 22:11
Publish 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>
Import the Docker image definitions and dependency scripts from WasmEdge snapshot
`512db9f513fff9facac396ac72f31748de638797`.

Relocate:
- `utils/docker/` -> `.`
- `utils/ffmpeg/` -> `scripts/ffmpeg/`
- `utils/opencvmini/` -> `scripts/opencvmini/`
- `utils/wasi-crypto/` -> `scripts/wasi-crypto/`
- `utils/wasi-nn/` -> `scripts/wasi-nn/`

Previous snapshot: https://github.com/WasmEdge/WasmEdge/tree/b2e483553ea7a1826be117180125c71e5d0b8958
New snapshot: https://github.com/WasmEdge/WasmEdge/tree/512db9f513fff9facac396ac72f31748de638797

Synchronize the imported Dockerfiles, Bake definitions, dependency scripts, patch,
checksum, and related additions, deletions, renames, and updates through the new
snapshot. Adjust Dockerfile COPY paths and Bake contexts for the relocated inputs.

Source provenance for changes after the previous snapshot:

- WasmEdge/WasmEdge@7485c8e
  7485c8e2 fix(docker): fetch the apt.llvm.org key over IPv4 with retries
  hydai <z54981220@gmail.com>, 2026-11-10
- WasmEdge/WasmEdge@a4cb45c
  a4cb45c3 chore(docker): drop the OpenCV build from the plugins images
  hydai <z54981220@gmail.com>, 2026-11-10
- WasmEdge/WasmEdge@536d99f
  536d99fc chore(docker): build FFmpeg in parallel
  hydai <z54981220@gmail.com>, 2026-11-10
- WasmEdge/WasmEdge@e415201
  e415201c ci(docker): build the Alpine base image on native runners
  hydai <z54981220@gmail.com>, 2026-11-10
- WasmEdge/WasmEdge@4780c82
  4780c821 ci(docker): link a consumer against the Debian static library
  hydai <z54981220@gmail.com>, 2026-11-19
- WasmEdge/WasmEdge@512db9f
  512db9f5 fix(wasi-nn): use NuGet source for Piper ONNX Runtime
  Yi Huang <yi@secondstate.io>, 2026-11-27

Signed-off-by: Yi Huang <yi@secondstate.io>
Signed-off-by: Yi Huang <yi@secondstate.io>
@0yi0
0yi0 force-pushed the devcontainer-ghcr branch from f4cdc50 to f76a915 Compare November 30, 2026 14:26
@0yi0
0yi0 marked this pull request as ready for review November 30, 2026 14:28
@0yi0
0yi0 requested a review from hydai December 1, 2026 06:05
@0yi0 0yi0 changed the title ci(devcontainer): add verified GHCR publication ci(devcontainer): add GHCR publication Dec 1, 2026
@hydai
hydai merged commit 4edb94d into main Dec 1, 2026
15 checks passed
@hydai
hydai deleted the devcontainer-ghcr branch December 1, 2026 07:13
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