This commit is contained in:
Andras Bacsai
2023-06-23 08:58:32 +02:00
parent 756dc08387
commit 6701e07335
7 changed files with 23 additions and 24 deletions

View File

@@ -16,8 +16,7 @@ class GithubAppSeeder extends Seeder
public function run(): void
{
$root_team = Team::find(0);
$private_key_1 = PrivateKey::find(1);
$private_key_2 = PrivateKey::find(2);
$private_key_2 = PrivateKey::find(1);
GithubApp::create([
'name' => 'Public GitHub',
'api_url' => 'https://api.github.com',

View File

@@ -16,7 +16,7 @@ class GitlabAppSeeder extends Seeder
public function run(): void
{
$root_team = Team::find(0);
$private_key_3 = PrivateKey::find(3);
$private_key_2 = PrivateKey::find(2);
GitlabApp::create([
'id' => 1,
'name' => 'Public GitLab',
@@ -36,7 +36,7 @@ class GitlabAppSeeder extends Seeder
'deploy_key_id' => '1234',
'public_key' => 'dfjasiourj',
'webhook_token' => '4u3928u4y392',
'private_key_id' => $private_key_3->id,
'private_key_id' => $private_key_2->id,
'team_id' => $root_team->id,
]);
}

View File

@@ -17,6 +17,7 @@ class PrivateKeySeeder extends Seeder
{
$team_1 = Team::find(0);
PrivateKey::create([
"id" => 0,
"team_id" => $team_1->id,
"name" => "Testing-host",
"description" => "This is a test docker container",

View File

@@ -16,7 +16,7 @@ class ServerSeeder extends Seeder
public function run(): void
{
$root_team = Team::find(0);
$private_key_1 = PrivateKey::find(1);
$private_key_1 = PrivateKey::find(0);
Server::create([
'id' => 0,