Implement Keystone environment deployments
This commit is contained in:
31
database/factories/EnvironmentFactory.php
Normal file
31
database/factories/EnvironmentFactory.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Enums\SchedulerMode;
|
||||
use App\Models\Application;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Environment>
|
||||
*/
|
||||
class EnvironmentFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'application_id' => Application::factory(),
|
||||
'name' => 'production',
|
||||
'branch' => 'main',
|
||||
'status' => 'active',
|
||||
'scheduler_enabled' => true,
|
||||
'scheduler_mode' => SchedulerMode::SINGLE,
|
||||
'build_config' => [],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user