Skip bad URLs in the deliver queue, and also print the URL itself
ci/woodpecker/tag/ociImageTag Pipeline was successful
Details
ci/woodpecker/tag/ociImageTag Pipeline was successful
Details
This commit is contained in:
parent
da6de92b5a
commit
eb355cf51d
|
@ -20,9 +20,8 @@ export default async (job: Bull.Job<DeliverJobData>) => {
|
||||||
try {
|
try {
|
||||||
host = new URL(job.data.to).host;
|
host = new URL(job.data.to).host;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.error(`Invalid URL: ${e}`);
|
logger.error(`${e} for input: ${job.data.to}`);
|
||||||
await job.discard();
|
return "skip";
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const puny = toPuny(host);
|
const puny = toPuny(host);
|
||||||
|
|
Loading…
Reference in New Issue