Skip to content

ci: auto-build in COPR on release - #548

Merged
Sapd merged 1 commit into
masterfrom
ci/auto-copr-build
Jul 23, 2026
Merged

ci: auto-build in COPR on release#548
Sapd merged 1 commit into
masterfrom
ci/auto-copr-build

Conversation

@Sapd

@Sapd Sapd commented Jul 23, 2026

Copy link
Copy Markdown
Owner

On a published release, builds the source RPM (version injected from the tag, so the binary reports the right version) in a fedora:latest container and submits it to thesapd/headsetcontrol via copr-cli — the same flow validated manually on the runner + Rocky 10 VM.

Setup needed: add a repo secret COPR_API_TOKEN = the full contents of your COPR API config (grab it from https://copr.fedorainfracloud.org/api/ — the [copr-cli] block).

Notes:

  • --nowait so the job returns after submitting (watch progress on COPR).
  • Applies from the next release (the spec landed after 4.0.0). First validation is the next release or workflow_dispatch.

On a published release, build the SRPM (version from the tag) in a Fedora
container and submit to COPR via copr-cli. Requires a COPR_API_TOKEN
secret (contents of your COPR API config).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 034eefac99

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +11 to +12
release:
types: [published]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Trigger COPR after the GITHUB_TOKEN-created release

The repository's normal release path will not invoke this workflow: .github/workflows/release.yml creates the published release through ncipollo/release-action using secrets.GITHUB_TOKEN (lines 88-101), and GitHub does not start subsequent workflows for events caused by that token (other than its documented dispatch exceptions). Consequently, pushing a normal version tag produces the GitHub release but never submits its SRPM to COPR; only a manually created release or workflow_dispatch will run this job. Trigger this from the tag/release workflow directly (or use an appropriate non-GITHUB_TOKEN trigger mechanism).

Useful? React with 👍 / 👎.

@Sapd
Sapd merged commit 512fd00 into master Jul 23, 2026
5 checks passed
@Sapd
Sapd deleted the ci/auto-copr-build branch July 23, 2026 18:28
@claude

claude Bot commented Jul 23, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

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