Skip to content

Conversation

@bergmannf
Copy link
Contributor

This PR adds a spec file to the repository that can be used with a webhook in COPR to automatically build a new version of osdctl on tag pushes.

The spec file and shell-script are mostly for reference, as the shell-script actually needs to be added to the custom build in COPR to actually prepare the spec file to have the correct version information during buildtime.

This takes a bunch of shortcuts to make it work:

- It does simply use go modules to download the dependencies during
build time, instead of package every dependency.
- It skips the %check sections, as that flagged some additional issues
that our CI didn't catch.
@openshift-ci openshift-ci bot requested review from clcollins and joshbranham July 25, 2025 12:01
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 25, 2025
@joshbranham
Copy link
Contributor

Maybe not related to what you're doing, but long term I would suggest using goreleaser in GitHub Actions to release the project on tags 👌

@bergmannf
Copy link
Contributor Author

bergmannf commented Jul 28, 2025

I think the goreleaser route might be useful for Mac OS (and providing binaries for whoever does not want to use COPR) - my main goal of using a COPR flow would be allowing users to use their normal DNF to keep our tools up-to-date without needing to do it themselves or some other extra tool.
Starting the webhook for COPR could probably also be a Github Action on tags though, if we don't want to use two different mechanisms to trigger releases.

@bergmannf
Copy link
Contributor Author

I've added a github action to trigger the COPR build now as well - I decided to keep the COPR_URL as a secret, so not everyone can just trigger builds.
I can add the secret before the merge already.

@RaphaelBut
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 4, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 4, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bergmannf, RaphaelBut

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [RaphaelBut,bergmannf]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 4, 2025

@bergmannf: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 8babe5a into openshift:master Sep 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants