8000 CI/CD: Add workflow for publishing Nerves FW on PRs on-demand by halimb · Pull Request #630 · evercam/ex_nvr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CI/CD: Add workflow for publishing Nerves FW on PRs on-demand #630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 18, 2025

Conversation

halimb
Copy link
Member
@halimb halimb commented Apr 14, 2025

On-demand Firmware Builds for Pull Requests

This PR adds the ability to trigger Nerves firmware builds directly from a PR comments, making it easier to test changes without merging to master or manually publishing a version.

Workflow

  • Comment on new PRs with build instructions
  • Supports building specific targets via /build <target> command
  • Supports building all targets with a simple /build command
  • Uses the current version number with branch and commit hash for preview builds (e.g.: 0.18.0-my-branch-abcd64 )
  • Posts build status updates as comments
  • Re-uses the existing Nerves build workflow

Copy link

📦 To trigger a firmware build, comment /build below.
To build a specific target, comment /build <target> with on of the following targets
Valid target names:

  • ex_nvr_rpi4
  • ex_nvr_rpi5
  • giraffe

@halimb halimb marked this pull request as ready for review April 14, 2025 13:11
@halimb
Copy link
Member Author
halimb commented Apr 14, 2025

/build ex_nvr_rpi5

@gBillal
Copy link
Member
gBillal commented Apr 14, 2025

/build ex_nvr_rpi4

@halimb
Copy link
Member Author
halimb commented Apr 14, 2025

The nerves-preview.yml isn't being triggered. (it may need to be merged first)

Here's an example run on a fork of ex_nvr: halimb#2

wf

@gBillal
Copy link
Member
gBillal commented Apr 15, 2025

@halimb what if the branch name is big ? should we just use the hash or truncate the name to 5 characters ?

@halimb
Copy link
Member Author
halimb commented Apr 15, 2025

Yes, good idea.
I'll do that 👍

@halimb
Copy link
Member Author
halimb commented Apr 15, 2025

@gBillal it's done.
Also made sure to remove non alphanumeric characters like / (only keeping alphanumeric and _ + - )

@halimb halimb merged commit e913bca into master Apr 18, 2025
@halimb halimb deleted the add-workflow-nerves-preview branch April 18, 2025 08:02
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
0