Skip to content

feat(release): Enhance build and publish workflows#4473

Open
radTuti wants to merge 12 commits intotigera:masterfrom
radTuti:reltool-hooks
Open

feat(release): Enhance build and publish workflows#4473
radTuti wants to merge 12 commits intotigera:masterfrom
radTuti:reltool-hooks

Conversation

@radTuti
Copy link
Contributor

@radTuti radTuti commented Feb 25, 2026

Description

This adds the ability to extend the build and publish workflows:

  • switch setupHashreleaseBuild and publishImages to wrapable function vars and add isValidReleaseVersion to allow overriding
  • add buildAfter to allow multiple cleanups added at various points that get done regardless of build status.
  • the builds for hashrelease uses the git hash for the corresponding product to generate CRDs when a path to the product directory locally is not set.
  • for release, the publish creates a github release by default unless user overrides it. Github release is still created in draft mode by default.

Release Note

TBD

For PR author

  • Tests for change.
  • If changing pkg/apis/, run make gen-files
  • If changing versions, run make gen-versions

For PR reviewers

A note for code reviewers - all pull requests must have the following:

  • Milestone set according to targeted release.
  • Appropriate labels:
    • kind/bug if this is a bugfix.
    • kind/enhancement if this is a a new feature.
    • enterprise if this PR applies to Calico Enterprise only.

Copilot AI review requested due to automatic review settings February 25, 2026 00:49
@radTuti radTuti requested a review from a team as a code owner February 25, 2026 00:49
@marvin-tigera marvin-tigera added this to the v1.42.0 milestone Feb 25, 2026
add a generic, extensible hook system to the release tooling that allows
external code to extend build and publish workflows
without modifying core logic.

This comment was marked as outdated.

- switch phase hook to multiHook
- clean up cloning hashrelease repo to use treeless clone instead
…wrapping

- change `setupHashreleaseBuild`, `publishImages` to function variables
- remove running command in context: only added as part of hook system
- add to buildCleanupFn for hashreleases in cli.Action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants