Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5200

Advanced users • Re: Seeking clever ideas: applying git changes to a Connect-ed remote pi w/o access to the repository

$
0
0
You can post the releases to a pubic github repository, and get the pi's to periodically poll for updates to releases in the repository.

Assuming your pi's have internet access:

Github provides an API that allows you to download info on the latest release:

curl -s -L https://api.github.com/repos/rerdavies/pipedal/releases

(for all releases)

curl -s -L https://api.github.com/repos/rerdavies/pipedal/release

(for just the most recent release).

Download URLs for the actual release files are included in the json bundle returned by these APIs.

I'd recommend that you throttle these request very carefully. Neither of these apis require GitHub auth tokens. But there might very reasonably be a threshold number of requests beyond which you do need auth tokens.

I'd also recommend -- as a matter of caution -- that you include gpg signatures for the downloads, and that you verify the signatures before you install them.

Statistics: Posted by rerdavies — Thu Sep 05, 2024 11:52 pm



Viewing all articles
Browse latest Browse all 5200

Trending Articles