Also check instances to skip
ci/woodpecker/push/ociImageTag Pipeline was successful
Details
ci/woodpecker/push/ociImageTag Pipeline was successful
Details
This commit is contained in:
parent
6ee43cbcec
commit
df9d15490f
|
@ -126,7 +126,14 @@ export default class DeliverManager {
|
||||||
const instancesToSkip = await skippedInstances(
|
const instancesToSkip = await skippedInstances(
|
||||||
// get (unique) list of hosts
|
// get (unique) list of hosts
|
||||||
Array.from(
|
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[]),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue