-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 6.8 stable and 6.9-rc. This will allow to use 6.8 in cilium/ebpf CI instead of 6.7 which is EOL. Also update update-version.sh to filter out EOL releases. Turns out this is easier to achieve using https://www.kernel.org/releases.json as a source and using just jq for JSON transformation. Signed-off-by: Tobias Klauser <[email protected]>
- Loading branch information
Showing
3 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
#!/bin/bash | ||
# Fetch the releases encoded in the kernel.org homepage and store them as a JSON. | ||
|
||
exec curl -sL https://www.kernel.org/ | | ||
xmllint --html --xpath "//table[@id='releases']/tr[.//a[contains(text(), 'tarball')]]/td/strong/text() | //table[@id='releases']/tr[.//a[contains(text(), 'tarball')]]/td[1]/text()" - 2>/dev/null | | ||
awk ' | ||
BEGIN { ORS=""; print "[" } | ||
/:/ { gsub(/:/, ""); type=$0; getline; version=$0; print (NR>2?",":"") "{\"version\": \"" version "\", \"type\": \"" type "\"}" } | ||
END { print "]" } | ||
' | | ||
jq '.' | tee versions.json | ||
exec curl -sL https://www.kernel.org/releases.json | | ||
jq '[ .releases[] | | ||
select(.iseol == false and .moniker != "linux-next") | | ||
{ "version" : .version, "type" : .moniker }]' | | ||
tee versions.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
[ | ||
{ | ||
"version": "6.8-rc4", | ||
"version": "6.9-rc3", | ||
"type": "mainline" | ||
}, | ||
{ | ||
"version": "6.7.4", | ||
"version": "6.8.4", | ||
"type": "stable" | ||
}, | ||
{ | ||
"version": "6.6.16", | ||
"version": "6.6.25", | ||
"type": "longterm" | ||
}, | ||
{ | ||
"version": "6.1.77", | ||
"version": "6.1.84", | ||
"type": "longterm" | ||
}, | ||
{ | ||
"version": "5.15.148", | ||
"version": "5.15.153", | ||
"type": "longterm" | ||
}, | ||
{ | ||
"version": "5.10.209", | ||
"version": "5.10.214", | ||
"type": "longterm" | ||
}, | ||
{ | ||
"version": "5.4.268", | ||
"version": "5.4.273", | ||
"type": "longterm" | ||
}, | ||
{ | ||
"version": "4.19.306", | ||
"version": "4.19.311", | ||
"type": "longterm" | ||
} | ||
] |