feat(ci): overhaul CLI workflow for enhanced artifact generation and publishing#1073
Merged
jakobmoellerdev merged 2 commits intoOct 23, 2025
Conversation
9108fca to
da1841b
Compare
…publishing
### What this PR does / why we need it:
- Introduced a revamped `cli.yml` GitHub Actions workflow to support robust CLI builds and streamlined artifact management.
- Enhanced support for pull requests, branch-based workflows, release tags, and manual triggers.
- Modularized the workflow to include two distinct jobs: `build` and `publish`.
- **`build`**:
- Added steps for sparse checkout, Go setup, Docker Buildx configuration, and artifact generation using CTF.
- Implemented provenance attestation for build outputs.
- Determined branch eligibility for automated artifact publishing.
- **`publish`**:
- Integrated OCI artifact publishing and tagging.
- Enabled multi-arch capabilities with layout-derived tagging.
- Verified and attested pushed OCI images with metadata.
- Improved artifact clarity with dynamic naming conventions linked to refs.
- Added manual triggers for enhanced control over rebuilds or retriggers.
### Impact
This update introduces a more flexible, multi-arch-compatible workflow, ensuring reliable CLI builds and publishing to align with modern automation standards. It also ensures build and sign workflows by default
Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
da1841b to
17b506e
Compare
Skarlso
approved these changes
Oct 22, 2025
Skarlso
left a comment
Contributor
There was a problem hiding this comment.
Looks okay. The syntax also looks okay. Can we reasonable run this on a test repo or something?
Member
Author
|
i did run extensive testing on my personal fork, but your mileage will vary. I will adjust if we have problems after that push |
b374262
into
open-component-model:main
19 of 20 checks passed
jakobmoellerdev
added a commit
that referenced
this pull request
Oct 27, 2025
…1075) <!-- markdownlint-disable MD041 --> #### What this PR does / why we need it - **Added `release-candidate-version` workflow**: - Automates release candidate (RC) version computation and tagging. - Generates a changelog using `git-cliff` for the new RC version. - Outputs relevant metadata like tags, versions, and encoded changelog. - **Added `cli-release` workflow**: - Integrates `release-candidate-version` workflow. - Automates tagging, pre-release creation, and CLI builds. - Supports dry runs for testing without pushing tags. - Added necessary infrastructure: - Created `cliff.toml` Git-Cliff configuration for changelog styling. - Added `compute-rc-version.js` script with tests for RC version computation. #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Enables automated versioning and changelog creation for CLI releases, aligning with best practices and ensuring consistent workflows. Establishes an automated release process for streamlined software delivery and changelog generation. eventually resolves open-component-model/ocm-project#699 but depends on #1073 --------- Signed-off-by: Jakob Möller <jakob.moeller@sap.com> Co-authored-by: Gerald Morrison <67469729+morri-son@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
cli.ymlGitHub Actions workflow to support robust CLI builds and streamlined artifact management: Enhanced support for pull requests, branch-based workflows, release tags, and manual triggers.buildandpublish.build:publish:Impact
This update introduces a more flexible, multi-arch-compatible workflow, ensuring reliable CLI builds and publishing to align with modern automation standards. It also ensures build and sign workflows by default
Which issue(s) this PR fixes
contributes open-component-model/ocm-project#699