1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Merge branch '1.4.x' into fix-large-builds

This commit is contained in:
Matej Bačo 2023-09-21 10:09:24 +02:00
commit 69fc962f50
3 changed files with 7 additions and 5 deletions

View file

@ -1,9 +1,9 @@
name: "Build and Publish"
name: "Build and Publish Appwrite Images for Cloud"
on:
push:
tags:
- appwrite-*
- cl-*
jobs:
build-publish:
@ -16,7 +16,7 @@ jobs:
with:
fetch-depth: 2
submodules: recursive
ref: feat-db-pools-master
ref: master
- name: Login to Docker Hub
uses: docker/login-action@v2

View file

@ -112,6 +112,8 @@ class BuildsV1 extends Worker
$isNewBuild = empty($buildId);
$deviceFunctions = $this->getFunctionsDevice($project->getId());
if ($isNewBuild) {
$buildId = ID::unique();
$build = $dbForProject->createDocument('builds', new Document([
@ -124,7 +126,7 @@ class BuildsV1 extends Worker
'path' => '',
'runtime' => $function->getAttribute('runtime'),
'source' => $deployment->getAttribute('path', ''),
'sourceType' => strtolower(App::getEnv('_APP_STORAGE_DEVICE', Storage::DEVICE_LOCAL)),
'sourceType' => strtolower($deviceFunctions->getType()),
'logs' => '',
'endTime' => null,
'duration' => 0,

View file

@ -70,7 +70,7 @@ class Executor
array $variables = [],
string $command = null,
) {
$runtimeId = "$projectId-$deploymentId";
$runtimeId = "$projectId-$deploymentId-build";
$route = "/runtimes";
$params = [
'runtimeId' => $runtimeId,