Merge pull request #8640 from appwrite/fix-vcs-deployment-size
Fix: vcs deployment size
This commit is contained in:
commit
d82572acbe
1 changed files with 3 additions and 1 deletions
|
@ -411,7 +411,9 @@ class Builds extends Action
|
||||||
Console::execute('rm -rf ' . \escapeshellarg($tmpPath), '', $stdout, $stderr);
|
Console::execute('rm -rf ' . \escapeshellarg($tmpPath), '', $stdout, $stderr);
|
||||||
|
|
||||||
$build = $dbForProject->updateDocument('builds', $build->getId(), $build->setAttribute('source', $source));
|
$build = $dbForProject->updateDocument('builds', $build->getId(), $build->setAttribute('source', $source));
|
||||||
$deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment->setAttribute('path', $source));
|
|
||||||
|
$directorySize = $deviceForFunctions->getFileSize($source);
|
||||||
|
$deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment->setAttribute('path', $source)->setAttribute('size', $directorySize));
|
||||||
|
|
||||||
$this->runGitAction('processing', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole);
|
$this->runGitAction('processing', $github, $providerCommitHash, $owner, $repositoryName, $project, $function, $deployment->getId(), $dbForProject, $dbForConsole);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue