Skip to content

ci: Build and push docker image to quay.io#54

Merged
indradhanush merged 1 commit intomasterfrom
dg/push-docker-image-to-quay
Sep 24, 2025
Merged

ci: Build and push docker image to quay.io#54
indradhanush merged 1 commit intomasterfrom
dg/push-docker-image-to-quay

Conversation

@indradhanush
Copy link

@indradhanush indradhanush commented Aug 18, 2025

Fixes KAAP-908.

CleanShot 2025-08-20 at 13 42 21@2x

Summary by Bito

This pull request enhances the CI pipeline by adding new Docker-related targets in the Makefile. The changes introduce a tagging system that incorporates version, commit count, commit hash, and a dirty flag, ensuring unique image identifiers. These modifications streamline the automation process for building and pushing Docker images.

@bito-code-review
Copy link

Bito Automatic Review Skipped - Draft PR

Bito didn't auto-review because this pull request is in draft status.
No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change draft PR review settings here, or contact your Bito workspace admin at ben@platform9.com.

@indradhanush indradhanush marked this pull request as ready for review August 20, 2025 12:33
@indradhanush indradhanush requested a review from a team August 20, 2025 12:33
@bito-code-review
Copy link

Changelist by Bito

This pull request implements the following key changes.

Key Change Files Impacted
New Feature - Docker CI Integration

Makefile - Introduced docker-build and docker-push targets with dynamic image tagging to support automated build and push of Docker images to quay.io.

Copy link

@bito-code-review bito-code-review bot left a comment

Choose a reason for hiding this comment

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

Code Review Agent Run #2d515d

Actionable Suggestions - 1
  • Makefile - 1
Review Details
  • Files reviewed - 1 · Commit Range: 4bd8aed..4bd8aed
    • Makefile
  • Files skipped - 1
    • .github/workflows/docker.yml - Reason: Filter setting
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Default Agent You can customize the agent settings here or contact your Bito workspace admin at mithil@platform9.com.

Documentation & Help

AI Code Review powered by Bito Logo

# v1.5.0-2-gb4c7af7-dirty
# v1.5.0-3-gbb39077
# v1.5.0
GIT_COMMIT := $(shell git describe --dirty --tags --match='v*')

Choose a reason for hiding this comment

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

Git command may fail without version tags

The GIT_COMMIT variable uses git describe --dirty --tags --match='v*' which may fail if no tags matching 'v*' exist, causing build failures. Consider adding a fallback to git rev-parse --short HEAD for repositories without tags.

Code suggestion
Check the AI-generated fix before applying
Suggested change
GIT_COMMIT := $(shell git describe --dirty --tags --match='v*')
GIT_COMMIT := $(shell git describe --dirty --tags --match='v*' 2>/dev/null || git rev-parse --short HEAD$$(git diff-index --quiet HEAD -- || echo '-dirty'))

Code Review Run #2d515d


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

Copy link

@mridulgain mridulgain Sep 23, 2025

Choose a reason for hiding this comment

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

Ptal. If we don't want to handle this, then we must add our own stating with v. Can't depend on existing tags from upstream.

Copy link
Author

Choose a reason for hiding this comment

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

@mridulgain I missed this. I'm not sure why we were tagging images as 2.x when the release version has been on 5.x.

Choose a reason for hiding this comment

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

It likely stems from legacy settings where the tag version wasn’t updated when transitioning to 5.x. You may want to check if there's a misconfiguration in the versioning logic or an outdated tag reference that needs updating.

Copy link
Author

@indradhanush indradhanush Sep 24, 2025

Choose a reason for hiding this comment

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

To clarify, I've ensured we have a v.* tag available so that the image is correctly tagged. What versioning should we be using here?

Choose a reason for hiding this comment

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

Since you've ensured that a v.* tag is available, aligning the image tag with our primary release version (5.x) would be ideal. We should use the current release version (e.g., v5.x) as the baseline and then append additional commit information if necessary.

@cruizen cruizen requested review from a team, deepak07dbz and snslk August 28, 2025 06:47
@indradhanush
Copy link
Author

Hold until August release is out.

@indradhanush indradhanush merged commit 49f48c7 into master Sep 24, 2025
8 of 11 checks passed
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.

3 participants