mirror of
https://github.com/appwrite/appwrite
synced 2026-05-05 22:38:37 +00:00
Fix vcs deployment size
This commit is contained in:
parent
0533792b00
commit
da4c4184bc
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);
|
||||
|
||||
$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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue