feat: github repo with deployment key
This commit is contained in:
@@ -16,9 +16,9 @@ class GithubAppSeeder extends Seeder
|
||||
public function run(): void
|
||||
{
|
||||
$root_team = Team::find(1);
|
||||
$private_key_1 = PrivateKey::find(1);
|
||||
$private_key_2 = PrivateKey::find(2);
|
||||
GithubApp::create([
|
||||
'id' => 1,
|
||||
'name' => 'Public GitHub',
|
||||
'api_url' => 'https://api.github.com',
|
||||
'html_url' => 'https://github.com',
|
||||
@@ -26,7 +26,6 @@ class GithubAppSeeder extends Seeder
|
||||
'team_id' => $root_team->id,
|
||||
]);
|
||||
GithubApp::create([
|
||||
'id' => 2,
|
||||
'name' => 'coolify-laravel-development-private-github',
|
||||
'api_url' => 'https://api.github.com',
|
||||
'html_url' => 'https://github.com',
|
||||
@@ -39,5 +38,13 @@ class GithubAppSeeder extends Seeder
|
||||
'private_key_id' => $private_key_2->id,
|
||||
'team_id' => $root_team->id,
|
||||
]);
|
||||
GithubApp::create([
|
||||
'name' => 'Private GitHub (deployment key)',
|
||||
'api_url' => 'https://api.github.com',
|
||||
'html_url' => 'https://github.com',
|
||||
'is_public' => false,
|
||||
'private_key_id' => $private_key_1->id,
|
||||
'team_id' => $root_team->id,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user