download: Support for gvisor (part 2)

Gvisor releases, besides only being tags, have some particularities:
- they are of the form yyyymmdd.p -> this get interpreted as a yaml
  float, so we need to explicitely convert to string to make it work.
- there is no semver-like attached to the version numbers, but the API
  (= OCI container runtime interface) is expected to be stable (see
  linked discussion)
- some older tags don't have hashs for some archs

Link: https://groups.google.com/g/gvisor-users/c/SxMeHt0Yb6Y/m/Xtv7seULCAAJ
This commit is contained in:
Max Gautier
2024-12-21 16:44:41 +01:00
parent 6608efb2c4
commit ff3d9a0443
2 changed files with 13 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ query($repoWithReleases: [ID!]!, $repoWithTags: [ID!]!) {
... on Repository {
nameWithOwner
refs(refPrefix: "refs/tags/", last: 100) {
refs(refPrefix: "refs/tags/", last: 25) {
nodes {
name
}