Skip to content

ci: add workflow_dispatch for feature branch builds#99

Merged
wcatz merged 1 commit intomasterfrom
chore/ci-workflow-dispatch
Mar 9, 2026
Merged

ci: add workflow_dispatch for feature branch builds#99
wcatz merged 1 commit intomasterfrom
chore/ci-workflow-dispatch

Conversation

@wcatz
Copy link
Copy Markdown
Owner

@wcatz wcatz commented Mar 9, 2026

Summary

  • Adds workflow_dispatch trigger with custom tag input to the Docker build workflow
  • Enables multiarch image builds from any branch without merging to master
  • Login + push enabled for dispatch events (not just push to master/tags)

Test plan

  • Merge this PR
  • Trigger manually via gh workflow run against feat/raw-gouroboros-live-tail with tag 3.1.0-rc1

Summary by CodeRabbit

  • New Features

    • Added manual workflow trigger for Docker builds with custom tag input.
  • Chores

    • Optimized GitHub Actions workflow conditions and image tag calculations for improved CI/CD efficiency.

Adds manual trigger with custom tag input so feature branches can build
multiarch images and push to Docker Hub without merging to master.
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 9, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

The GitHub Actions Docker build-push workflow has been enhanced to support manual triggering via workflow_dispatch with custom tag input. Login, metadata, and push conditions are updated to accommodate this new trigger type while maintaining existing push and pull request behaviors.

Changes

Cohort / File(s) Summary
Docker Build/Push Workflow
.github/workflows/docker-build-push.yml
Added workflow_dispatch trigger with tag input. Updated login condition to exclude pull requests. Metadata extraction now skips workflow_dispatch events. Build/push logic now handles custom tags from workflow_dispatch input, falling back to metadata outputs for other events. VERSION build-arg sourced from input tag (workflow_dispatch) or github.ref_name (push).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 A workflow so grand, now dispatched by hand,
With tags custom-made, our Docker expands!
No pull request walls, just manual control—
This rabbit hops forward with versioning soul! 🚀

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding workflow_dispatch trigger support to the Docker build workflow for feature branch builds.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/ci-workflow-dispatch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@wcatz wcatz merged commit e35fd8f into master Mar 9, 2026
3 of 4 checks passed
@wcatz wcatz deleted the chore/ci-workflow-dispatch branch March 20, 2026 14: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.

1 participant