Skip to content

Add git branch option#5

Merged
veerendra2 merged 9 commits intomainfrom
add-git-branch-option
Mar 2, 2026
Merged

Add git branch option#5
veerendra2 merged 9 commits intomainfrom
add-git-branch-option

Conversation

@veerendra2
Copy link
Owner

@veerendra2 veerendra2 commented Feb 27, 2026

  • Test locally
  • Update docs

@veerendra2 veerendra2 added the build Builds dev docker image label Feb 27, 2026
@veerendra2 veerendra2 requested a review from Copilot February 27, 2026 23:20
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

Adds support for configuring which Git branch ComposeFlux tracks, and refactors GitHub Actions workflows to reuse a shared Docker build/push workflow.

Changes:

  • Introduces --branch / GIT_BRANCH config and uses it during clone/checkout/pull behavior.
  • Changes Pull() to fetch + hard reset instead of PullContext.
  • Refactors GitHub Actions: adds a reusable docker-build-push.yml, updates release workflow to call it, and adds an optional PR-labeled Docker build job in CI.

Reviewed changes

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

Show a summary per file
File Description
pkg/source/git.go Adds branch configuration and updates clone/open + pull behavior to track a selected branch.
cmd/composeflux/common.go Removes deprecated env-var fallback and logs selected repo path/branch at startup.
.github/workflows/release.yml Switches release image build to call reusable docker build workflow.
.github/workflows/pages.yml Minor workflow housekeeping (job name + removed commented step).
.github/workflows/docker-build-push.yml New reusable workflow for Docker build/push.
.github/workflows/ci.yml Adds PR path filtering and optional labeled Docker build job using the reusable workflow.

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@veerendra2 veerendra2 removed the build Builds dev docker image label Feb 28, 2026
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 6 out of 6 changed files in this pull request and generated 2 comments.


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

@veerendra2 veerendra2 added the build Builds dev docker image label Feb 28, 2026
@veerendra2 veerendra2 removed the build Builds dev docker image label Mar 2, 2026
@veerendra2 veerendra2 marked this pull request as ready for review March 2, 2026 20:19
@veerendra2 veerendra2 merged commit 36e087f into main Mar 2, 2026
2 checks passed
@veerendra2 veerendra2 deleted the add-git-branch-option branch March 2, 2026 20:23
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