Add GitHub, GitLab, DeployKeys

This commit is contained in:
Andras Bacsai
2023-03-28 12:09:34 +02:00
parent 46c2d311e9
commit 54441ddfde
20 changed files with 326 additions and 24 deletions

View File

@@ -4,6 +4,7 @@ namespace Database\Seeders;
use App\Models\Application;
use App\Models\Environment;
use App\Models\GithubApp;
use App\Models\StandaloneDocker;
use App\Models\SwarmDocker;
use Illuminate\Database\Seeder;
@@ -19,12 +20,15 @@ class ApplicationSeeder extends Seeder
$standalone_docker_1 = StandaloneDocker::find(1);
$swarm_docker_1 = SwarmDocker::find(1);
$github_public_source = GithubApp::find(1);
Application::create([
'id' => 1,
'name' => 'My first application',
'environment_id' => $environment_1->id,
'destination_id' => $standalone_docker_1->id,
'destination_type' => StandaloneDocker::class,
'source_id' => $github_public_source->id,
'source_type' => GithubApp::class,
]);
Application::create([
'id' => 2,
@@ -32,6 +36,8 @@ class ApplicationSeeder extends Seeder
'environment_id' => $environment_1->id,
'destination_id' => $swarm_docker_1->id,
'destination_type' => SwarmDocker::class,
'source_id' => $github_public_source->id,
'source_type' => GithubApp::class,
]);
}
}