Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 70797543e4 |
+1
-4
@@ -146,6 +146,7 @@ const listImages = (state) => {
|
|||||||
const filters = [
|
const filters = [
|
||||||
"Name=state,Values=available",
|
"Name=state,Values=available",
|
||||||
`Name=tag:Project,Values=${state.name}`,
|
`Name=tag:Project,Values=${state.name}`,
|
||||||
|
"Name=tag:Role,Values=published-ami",
|
||||||
];
|
];
|
||||||
if (state.architecture) {
|
if (state.architecture) {
|
||||||
filters.push(`Name=tag:Architecture,Values=${state.architecture}`);
|
filters.push(`Name=tag:Architecture,Values=${state.architecture}`);
|
||||||
@@ -163,10 +164,6 @@ const listImages = (state) => {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
return (result?.Images ?? [])
|
return (result?.Images ?? [])
|
||||||
.filter((image) => {
|
|
||||||
const tags = amiTags(image);
|
|
||||||
return tags.Role === "published-ami" || Boolean(tags.RootSnapshotId || tags.NixSnapshotId);
|
|
||||||
})
|
|
||||||
.sort((a, b) => String(b.CreationDate ?? "").localeCompare(String(a.CreationDate ?? "")));
|
.sort((a, b) => String(b.CreationDate ?? "").localeCompare(String(a.CreationDate ?? "")));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user