Compare commits
1 Commits
d250191ed0
...
70797543e4
| Author | SHA1 | Date | |
|---|---|---|---|
| 70797543e4 |
+1
-4
@@ -146,6 +146,7 @@ const listImages = (state) => {
|
||||
const filters = [
|
||||
"Name=state,Values=available",
|
||||
`Name=tag:Project,Values=${state.name}`,
|
||||
"Name=tag:Role,Values=published-ami",
|
||||
];
|
||||
if (state.architecture) {
|
||||
filters.push(`Name=tag:Architecture,Values=${state.architecture}`);
|
||||
@@ -163,10 +164,6 @@ const listImages = (state) => {
|
||||
]);
|
||||
|
||||
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 ?? "")));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user