1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

fix(vcs): fix deployments stuck at processing

Ensure project is passed in the event because the init hook
isn't able to detect the project.

Make sure the build is triggered for each function.

Reset the build event so the shutdown hook doesn't trigger
again.
This commit is contained in:
Steven Nguyen 2024-03-10 21:33:57 +01:00
parent 6a795f4d7a
commit 47fddbe8e5
No known key found for this signature in database

View file

@ -238,11 +238,16 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId
$queueForBuilds
->setType(BUILD_TYPE_DEPLOYMENT)
->setResource($function)
->setDeployment($deployment);
->setDeployment($deployment)
->setProject($project); // set the project because it won't be set for git deployments
$queueForBuilds->trigger(); // must trigger here so that we create a build for each function
//TODO: Add event?
}
}
$queueForBuilds->setType(''); // prevent shutdown hook from triggering again
};
App::get('/v1/vcs/github/authorize')