Skip to content

Trigger binary and docker builds in release flow#558

Merged
avalonche merged 1 commit into
mainfrom
fix/tag-triggered-releases
Jul 15, 2026
Merged

Trigger binary and docker builds in release flow#558
avalonche merged 1 commit into
mainfrom
fix/tag-triggered-releases

Conversation

@avalonche

Copy link
Copy Markdown
Collaborator

📝 Summary

Trigger docker publish in the new release flow

💡 Motivation and Context

release candidates and tags were pushed but not docker builds


✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@avalonche
avalonche requested a review from SozinM as a code owner July 15, 2026 20:40
Copilot AI review requested due to automatic review settings July 15, 2026 20:40
@avalonche
avalonche requested a review from 0x416e746f6e as a code owner July 15, 2026 20:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the release automation so that when release tags (including RC tags) are created via workflows, the main [op-rbuilder] Release workflow is explicitly dispatched to perform binary and Docker builds (which otherwise may not run due to GitHub’s workflow-chaining restrictions when using GITHUB_TOKEN).

Changes:

  • Add gh workflow run dispatch from the release-plz flow after releases are created.
  • Add gh workflow run dispatch from the release-candidate tag flow after pushing the RC tag.
  • Expand workflow permissions to allow triggering other workflows (actions: write).

Reviewed changes

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

File Description
.github/workflows/release-plz.yaml Adds a post-release dispatch step to run the main release workflow for each created tag, and broadens permissions to allow workflow dispatch.
.github/workflows/op_rbuilder_release_candidate.yaml After creating/pushing an RC tag, dispatches the main release workflow so binary and Docker builds run for RCs.

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

Comment on lines 11 to 16
permissions:
pull-requests: write
contents: write
actions: write

jobs:
Comment on lines +46 to +54
run: |
jq -r '.[].tag' <<< "$RELEASES" | while read -r tag; do
echo "Dispatching release workflow for ${tag}"
gh workflow run op_rbuilder_release.yaml \
--ref "${tag}" \
-f build-binary=true \
-f build-docker=true \
-f draft-release=true
done
Comment on lines +58 to +67
- name: Trigger release workflow
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Dispatching release workflow for ${TAG}"
gh workflow run op_rbuilder_release.yaml \
--ref "${TAG}" \
-f build-binary=true \
-f build-docker=true \
-f draft-release=true
@avalonche
avalonche merged commit 83e1ed7 into main Jul 15, 2026
5 checks passed
@avalonche
avalonche deleted the fix/tag-triggered-releases branch July 15, 2026 22:20
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