Closed bobheadxi closed 3 years ago
Likely because https://sourcegraph.com/github.com/ubclaunchpad/inertia@39e1169426c9549a75794a3606063a112f42eb9c/-/blob/daemon/inertiad/daemon/status.go#L71-79 doesn't handle "already at latest"
I can try this out I think.
Also for GetLatestImageTag
function ghcr.io has REST API (given you have an authorization PAT). See https://docs.docker.com/registry/spec/api/#listing-image-tags
Tried doing a curl
:
curl \
-H "Authorization: Bearer $(echo $PAT | base64)" \
-H "Accept: application/vnd.docker.distribution.manifest.list.v2+json" \
https://ghcr.io/v2/ubclaunchpad/inertiad/tags/list
Oh interesting! I could not find that documented anywhere on GitHub's end, didn't realize it would conform to a standardized registry API (which in hindsight makes perfect sense haha)