Add fixed UUIDs to all development seeders for programmatic API access: - Server: localhost - Project: project - Applications: docker-compose, nodejs, dockerfile, dockerfile-pure - StandaloneDocker: docker - StandalonePostgresql: postgresql - S3Storage: minio - PrivateKeys: ssh, github-key - GithubApps: github-public, github-app - GitlabApp: gitlab-public - LocalPersistentVolume: volume 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
1.1 KiB
PHP
40 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\GithubApp;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class GithubAppSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
GithubApp::create([
|
|
'id' => 0,
|
|
'uuid' => 'github-public',
|
|
'name' => 'Public GitHub',
|
|
'api_url' => 'https://api.github.com',
|
|
'html_url' => 'https://github.com',
|
|
'is_public' => true,
|
|
'team_id' => 0,
|
|
]);
|
|
GithubApp::create([
|
|
'name' => 'coolify-laravel-dev-public',
|
|
'uuid' => 'github-app',
|
|
'organization' => 'coollabsio',
|
|
'api_url' => 'https://api.github.com',
|
|
'html_url' => 'https://github.com',
|
|
'is_public' => false,
|
|
'app_id' => 292941,
|
|
'installation_id' => 37267016,
|
|
'client_id' => 'Iv1.220e564d2b0abd8c',
|
|
'client_secret' => '116d1d80289f378410dd70ab4e4b81dd8d2c52b6',
|
|
'webhook_secret' => '326a47b49054f03288f800d81247ec9414d0abf3',
|
|
'private_key_id' => 2,
|
|
'team_id' => 0,
|
|
]);
|
|
}
|
|
}
|