|
|
|
@ -17,11 +17,15 @@ export const POST: APIRoute = async ({ request }) => {
|
|
|
|
|
const { deploys } = await loadConfig()
|
|
|
|
|
|
|
|
|
|
for (const deploy of deploys) {
|
|
|
|
|
if (deploy.type !== 'docker') {
|
|
|
|
|
if (deploy.type !== 'docker-image') {
|
|
|
|
|
if (URLS.includes(normalizeURL(deploy.url))) {
|
|
|
|
|
debug(`[Webhook] Triggering deploy for "${deploy.url}"`)
|
|
|
|
|
|
|
|
|
|
const [jobBase, deployFn] = createDeployJob(deploy, { event: 'webhook', url: deploy.url })
|
|
|
|
|
|
|
|
|
|
const [jobBase, deployFn] = createDeployJob(deploy, {
|
|
|
|
|
event: 'webhook',
|
|
|
|
|
url: deploy.url,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
await enqueueJob(jobBase, deployFn)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|