Skip to content
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

Add workflow to auto-deploy an OTA update #17

Merged
merged 3 commits into from
Jan 8, 2024
Merged

Conversation

gminn
Copy link
Member

@gminn gminn commented Jan 5, 2024

Summary

To streamline dog-fooding for this fleet, OTA updates are now triggered
when a push is made to the main branch of this repo.

Test Plan

Triggered the workflow manually with:

gh workflow run ota-deploy.yml --ref gminn/add-auto-ota-deploy

which completed successfully. The payload and symbol file (build id 9003536c6c192116291d676edf9dcdc79aca5fed) got uploaded correctly.
Verified that the ota deploy was successful by verifying my device got the payload
and did a firmware update:

*** Booting nRF Connect SDK 2d2da43e7515 ***
[00:00:00.271,545] <inf> mflt: Reset Reason, RESETREAS=0x10000
[00:00:00.271,606] <inf> mflt: Reset Causes:
[00:00:00.271,636] <inf> mflt:  Software
[00:00:00.272,735] <inf> mflt: GNU Build ID: 9003536c6c192116291d676edf9dcdc79aca5fed
[00:00:00.273,101] <inf> mflt: Periodic background upload scheduled - duration=4611s period=10800s
...
uart:~$ mflt get_device_info
[00:08:20.264,801] <inf> mflt: S/N: 351901930733237
[00:08:20.264,892] <inf> mflt: SW type: nrf91ns-fw
[00:08:20.264,953] <inf> mflt: SW version: 2024.01.08.7450362778
[00:08:20.264,984] <inf> mflt: HW version: thingy91

Resolves: MFLT-12995

@gminn gminn requested a review from a team January 5, 2024 19:43
@gminn gminn changed the title Add workflow to regularly deploy an OTA Add workflow to regularly deploy an OTA update Jan 5, 2024
@gminn gminn changed the title Add workflow to regularly deploy an OTA update Add workflow to auto-deploy an OTA update Jan 5, 2024
Copy link
Contributor

@noahp noahp left a comment

Choose a reason for hiding this comment

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

Awesome!

.github/workflows/ota-deploy.yml Show resolved Hide resolved
.github/workflows/ota-deploy.yml Outdated Show resolved Hide resolved
.github/workflows/ota-deploy.yml Show resolved Hide resolved
.github/workflows/ota-deploy.yml Outdated Show resolved Hide resolved
@gminn gminn merged commit ae84bb1 into main Jan 8, 2024
1 check passed
@gminn gminn deleted the gminn/add-auto-ota-deploy branch January 8, 2024 17:19
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