Docker image publishing

multi-arch image publishing to GHCR via GitHub Actions

rcarmo 6f49ace 690 B Updated

File contents

Skill: Docker image publishing

Goal

Provide a reusable GitHub Actions workflow to build/push multi-arch images to GHCR on tag pushes.

Conventions

  • Publish on tags v*.
  • Use native Intel or ARM runners for CI/CD. Don't use QEMU.
  • Use buildx + per-arch digest builds, then merge into a manifest.
  • Use docker/metadata-action for semver tag derivation.
  • Prioritize minimal images, taking advantage of caching and layers.
  • Prefer reproducible builds (minimize network fetches at runtime; pin versions when practical).

Files

  • .github/workflows/docker-publish.yml

rcarmo/apfelstrudel/tree/main/.github/skills/docker commit 6f49acef30

Frequently asked questions

npx skillmds@latest add rcarmo/docker-image-publishing