fix: pr deployment
This commit is contained in:
parent
2060619e5b
commit
a6ffb5c61c
@ -451,7 +451,7 @@ export async function deployApplication(request: FastifyRequest<DeployApplicatio
|
|||||||
applicationId: id,
|
applicationId: id,
|
||||||
sourceBranch: branch,
|
sourceBranch: branch,
|
||||||
branch: application.branch,
|
branch: application.branch,
|
||||||
pullmergeRequestId,
|
pullmergeRequestId: pullmergeRequestId.toString(),
|
||||||
forceRebuild,
|
forceRebuild,
|
||||||
destinationDockerId: application.destinationDocker?.id,
|
destinationDockerId: application.destinationDocker?.id,
|
||||||
gitSourceId: application.gitSource?.id,
|
gitSourceId: application.gitSource?.id,
|
||||||
|
@ -152,7 +152,6 @@ export async function gitLabEvents(request: FastifyRequest<GitLabEvents>) {
|
|||||||
} else if (action === 'close') {
|
} else if (action === 'close') {
|
||||||
if (applicationFound.destinationDockerId) {
|
if (applicationFound.destinationDockerId) {
|
||||||
const id = `${applicationFound.id}-${pullmergeRequestId}`;
|
const id = `${applicationFound.id}-${pullmergeRequestId}`;
|
||||||
const engine = applicationFound.destinationDocker.engine;
|
|
||||||
await removeContainer({ id, dockerId: applicationFound.destinationDocker.id });
|
await removeContainer({ id, dockerId: applicationFound.destinationDocker.id });
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user