fix: deployment key based works
This commit is contained in:
parent
1342634907
commit
4f98cef7cb
@ -566,7 +566,7 @@ private function importing_git_repository()
|
||||
if ($this->pull_request_id !== 0) {
|
||||
$pr_branch_name = "pr-{$this->pull_request_id}-coolify";
|
||||
}
|
||||
|
||||
|
||||
if ($this->application->deploymentType() === 'source') {
|
||||
$source_html_url = data_get($this->application, 'source.html_url');
|
||||
$url = parse_url(filter_var($source_html_url, FILTER_SANITIZE_URL));
|
||||
@ -619,4 +619,4 @@ private function clone_repository()
|
||||
);
|
||||
$this->commit = $this->saved_outputs->get('git_commit_sha');
|
||||
}
|
||||
}
|
||||
}
|
@ -195,6 +195,9 @@ public function isPRDeployable(): bool
|
||||
}
|
||||
public function deploymentType()
|
||||
{
|
||||
if (data_get($this, 'private_key_id')) {
|
||||
return 'deploy_key';
|
||||
}
|
||||
if (data_get($this, 'source')) {
|
||||
return 'source';
|
||||
}
|
||||
@ -203,4 +206,4 @@ public function deploymentType()
|
||||
}
|
||||
throw new \Exception('No deployment type found');
|
||||
}
|
||||
}
|
||||
}
|
@ -38,4 +38,4 @@ public function run(): void
|
||||
'private_key_id' => $private_key_1->id
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
@ -14,6 +14,7 @@ class ServerSettingSeeder extends Seeder
|
||||
public function run(): void
|
||||
{
|
||||
$server_2 = Server::find(0)->load(['settings']);
|
||||
$server_2->settings->wildcard_domain = 'http://127.0.0.1.sslip.io';
|
||||
$server_2->settings->is_build_server = true;
|
||||
$server_2->settings->is_reachable = true;
|
||||
$server_2->settings->save();
|
||||
@ -23,4 +24,4 @@ public function run(): void
|
||||
$server_3->settings->is_reachable = false;
|
||||
$server_3->settings->save();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user