Also check instances to skip
ci/woodpecker/push/ociImageTag Pipeline was successful Details

This commit is contained in:
Natty 2023-08-16 01:21:28 +02:00
parent 6ee43cbcec
commit df9d15490f
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 8 additions and 1 deletions

View File

@ -126,7 +126,14 @@ export default class DeliverManager {
const instancesToSkip = await skippedInstances(
// get (unique) list of hosts
Array.from(
new Set(Array.from(inboxes).map((inbox) => new URL(inbox).host)),
new Set(Array.from(inboxes).map((inbox) => {
try {
return new URL(inbox).host;
} catch (e) {
apLogger.error(`Invalid inbox URL: ${inbox}`);
return null;
}
} ).filter((host) => host != null) as string[]),
),
);