Skip to content

Conversation

@weng271190436
Copy link
Collaborator

Description of your changes

publish image to ghcr with tag when creating a release

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

Copy link
Contributor

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 pull request adds automation to publish Docker images to GitHub Container Registry (GHCR) when creating a release. The workflow supports both automatic triggering on version tags and manual dispatch.

Key Changes

  • Added --provenance=false flag to Docker buildx commands to prevent architecture detection issues in GHCR
  • Created a new GitHub Actions workflow for building and publishing release images
  • Configured automatic and manual release triggers with proper tagging

Reviewed changes

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

File Description
Makefile Added --provenance=false flag to all three docker-build targets (hub-agent, member-agent, refresh-token) with explanatory comments to fix GHCR architecture detection issues
.github/workflows/release.yml New workflow that triggers on version tags or manual dispatch, computes the registry path and release tag, builds all three agent images using the Makefile, and publishes them to GHCR

Wei Weng added 3 commits December 1, 2025 21:28
Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
@weng271190436 weng271190436 force-pushed the weiweng/publish-image-with-tag branch from 7dab07e to 54a5e98 Compare December 1, 2025 21:29
Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
@weng271190436 weng271190436 force-pushed the weiweng/publish-image-with-tag branch from 0b43422 to 37ef323 Compare December 1, 2025 21:41
ryanzhang-oss
ryanzhang-oss previously approved these changes Dec 1, 2025
Signed-off-by: Wei Weng <Wei.Weng@microsoft.com>
@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@weng271190436 weng271190436 merged commit d5fcf88 into kubefleet-dev:main Dec 1, 2025
21 of 23 checks passed
@weng271190436 weng271190436 deleted the weiweng/publish-image-with-tag branch December 1, 2025 23:45
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