chore(ci): Support changelogs for Surface devices

Signed-off-by: RJ Sampson <rj.sampson@chainguard.dev>
This commit is contained in:
RJ Sampson 2025-01-01 22:43:05 -07:00
parent 4d24900436
commit dae934d655
Failed to extract signature

View File

@ -11,7 +11,7 @@ REGISTRY = "docker://ghcr.io/ublue-os/"
IMAGE_MATRIX = {
"base": ["desktop", "deck", "nvidia-closed", "nvidia-open"],
"de": ["kde", "gnome"],
"image_flavor": ["main", "asus"],
"image_flavor": ["main", "asus", "surface"],
}
RETRIES = 3
@ -33,6 +33,7 @@ OTHER_NAMES = {
"gnome": "### Gnome Images\n| | Name | Previous | New |\n| --- | --- | --- | --- |{changes}\n\n",
"nvidia": "### Nvidia Images\n| | Name | Previous | New |\n| --- | --- | --- | --- |{changes}\n\n",
"asus": "### Asus Images\n| | Name | Previous | New |\n| --- | --- | --- | --- |{changes}\n\n",
"surface": "### Surface Images\n| | Name | Previous | New |\n| --- | --- | --- | --- |{changes}\n\n",
}
COMMITS_FORMAT = "### Commits\n| Hash | Subject |\n| --- | --- |{commits}\n\n"
@ -204,6 +205,8 @@ def get_package_groups(prev: dict[str, Any], manifests: dict[str, Any]):
if t == "asus" and image_flavor != "asus":
continue
if t == "surface" and image_flavor != "surface":
continue
if t == "nvidia" and "nvidia" not in base:
continue
if t == "kde" and de != "kde":