Skip to content

Conversation

@gyutaeb
Copy link

@gyutaeb gyutaeb commented Jan 12, 2026

Summary

Extend the existing docker workflow to push images to GitHub Container Registry (ghcr.io/libbpf/bpftool) when a new tag is pushed or when changes are merged to main.

Behavior

Event Action
Pull Request Build and test locally (no push)
Push to main branch Build multi-arch and push with main tag
Version tag (v1.0.0) Build and push with version tag

Test

  • Tested workflow on forked repository (github.com/gyutaeb/bpftool)

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the Docker workflow to publish bpftool container images to GitHub Container Registry (GHCR) when version tags are pushed or changes are merged to the main branch. It adds multi-architecture support (amd64/arm64) and build caching while preserving the existing PR testing workflow.

Changes:

  • Add trigger for version tags and configure GHCR publishing on push events
  • Add multi-architecture build support with Docker Buildx and QEMU
  • Add build caching using GitHub Actions cache for improved build performance

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Extend the existing docker workflow to push images to GitHub Container
Registry (ghcr.io/libbpf/bpftool) when a new tag is pushed or when
changes are merged to main.

- Add trigger for version tags (v*.*.*)
- Add GHCR login and push steps
- Add multi-arch build support (linux/amd64, linux/arm64)
- Add build caching using GitHub Actions cache
- Add explicit latest tag support for version releases
- Skip multi-arch build for PRs to optimize CI resources
- Keep existing PR testing workflow

Link: libbpf#232
Signed-off-by: Gyutae Bae <gyutae.bae@navercorp.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gyutaeb
Copy link
Author

gyutaeb commented Jan 13, 2026

@qmonnet
Thanks for review! I've added conditions to always build the test image for PRs, and to run multi-arch builds only on releases. I have also addressed all review comments.

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.

[Feature Request] Automate publishing official Docker images to GHCR

1 participant