Skip to content

feat: ghcr publish workflow#404

Open
ShubyM wants to merge 3 commits intoGoogleCloudPlatform:mainfrom
ShubyM:feat/ghcr-publish-workflow
Open

feat: ghcr publish workflow#404
ShubyM wants to merge 3 commits intoGoogleCloudPlatform:mainfrom
ShubyM:feat/ghcr-publish-workflow

Conversation

@ShubyM
Copy link
Collaborator

@ShubyM ShubyM commented Jul 14, 2025

Github action to publish kubectl-ai image to GHCR, part of #264.

Testing locally using act

  1. In the docker/build-push-action step, set push: false
  2. (Optional) Add load: true in the same step to load the built image into your local Docker daemon for inspection
  3. Run the following command
act -j build-and-publish

@droot
Copy link
Member

droot commented Jul 15, 2025

@ShubyM can you update the description with the details on how you tested it locally ?

@ShubyM ShubyM marked this pull request as ready for review July 15, 2025 19:53
@ShubyM ShubyM changed the title [WIP] Feat/ghcr publish workflow Feat/ghcr publish workflow Jul 15, 2025
@ShubyM ShubyM changed the title Feat/ghcr publish workflow feat: ghcr publish workflow Jul 18, 2025
@mikebz mikebz requested a review from Copilot August 1, 2025 17:44
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 introduces a GitHub Actions workflow to build and publish the kubectl-ai Docker image to GitHub Container Registry (GHCR), addressing issue #264. The workflow enables automated container image publishing for the project.

Key changes:

  • Adds a new GitHub Actions workflow for Docker image publishing
  • Configures GHCR as the target registry with proper authentication
  • Sets up automated tagging with latest and timestamp-based tags
Comments suppressed due to low confidence (1)

.github/workflows/publish-image.yaml:15

  • [nitpick] The job name 'build-and-push' is inconsistent with the actual job name 'build-and-publish' used in the PR description and testing instructions. Consider renaming to 'build-and-publish' for consistency.
  build-and-push:

with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule,pattern={{date 'YYYYMMDD-HHmm' tz='UTC'}}
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

The workflow is triggered by 'workflow_dispatch' (manual trigger) but includes a 'type=schedule' tag pattern. This tag type is only relevant for scheduled workflows and will not be applied for manual triggers. Consider using 'type=ref,event=workflow_dispatch' or removing this tag type.

Suggested change
type=schedule,pattern={{date 'YYYYMMDD-HHmm' tz='UTC'}}

Copilot uses AI. Check for mistakes.
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