wip previews

This commit is contained in:
Andras Bacsai
2023-05-16 14:11:55 +02:00
parent 9bbf25b9f4
commit ec233162e9
8 changed files with 49 additions and 11 deletions

View File

@@ -41,6 +41,8 @@ return new class extends Migration
$table->string('base_directory')->default('/');
$table->string('publish_directory')->nullable();
$table->schemalessAttributes('previews');
$table->string('health_check_path')->default('/');
$table->string('health_check_port')->nullable();
$table->string('health_check_host')->default('localhost');

View File

@@ -2,6 +2,7 @@
namespace Database\Seeders;
use App\Data\ApplicationPreview;
use App\Models\Application;
use App\Models\ApplicationSetting;
use App\Models\Environment;
@@ -36,6 +37,16 @@ class ApplicationSeeder extends Seeder
'destination_type' => StandaloneDocker::class,
'source_id' => $github_public_source->id,
'source_type' => GithubApp::class,
'previews' => [
ApplicationPreview::from([
'pullRequestId' => 1,
'branch' => 'nodejs-fastify'
]),
ApplicationPreview::from([
'pullRequestId' => 2,
'branch' => 'nodejs-fastify'
])
]
]);
}
}