Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Update premd if new version available #92

Open
filopedraz opened this issue Jul 17, 2023 · 1 comment · May be fixed by #121
Open

Update premd if new version available #92

filopedraz opened this issue Jul 17, 2023 · 1 comment · May be fixed by #121
Assignees

Comments

@filopedraz
Copy link
Contributor

Description

  • Expose an endpoint GET /update-available : bool

Return True if there is a new version available for premd container.

  • Expose an endpoint POST /update-daemon

The endpoint should restart premd with the latest version.

@nsosio nsosio self-assigned this Jul 31, 2023
@casperdcl
Copy link
Contributor

@nsosio as an alternative to

gh api orgs/premai-io/packages/container/premd/versions --jq '.[0].metadata.container.tags[0]'

(which requires a token with packages:read scope) perhaps a sneaky work-around is to parse https://github.com/premAI-io/prem-daemon/pkgs/container/premd?

$('.Label.mr-1.mb-2.text-normal').text

😬😅

@casperdcl casperdcl linked a pull request Aug 2, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants