randomgenerated name fix

This commit is contained in:
Andras Bacsai 2023-05-17 13:32:18 +02:00
parent 5f104c58f2
commit c350018716
3 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ public function submit()
$environment = $project->load(['environments'])->environments->where('name', $this->parameters['environment_name'])->first();
$application = Application::create([
'name' => generateRandomName() . "-{$this->selected_repository_owner}/{$this->selected_repository_repo}:{$this->selected_branch_name}",
'name' => generateRandomName(),
'repository_project_id' => $this->selected_repository_id,
'git_repository' => "{$this->selected_repository_owner}/{$this->selected_repository_repo}",
'git_branch' => $this->selected_branch_name,

View File

@ -74,7 +74,7 @@ public function submit()
$project = Project::where('uuid', $this->parameters['project_uuid'])->first();
$environment = $project->load(['environments'])->environments->where('name', $this->parameters['environment_name'])->first();
$application_init = [
'name' => generateRandomName() . "-{$git_repository}:{$git_branch}",
'name' => generateRandomName(),
'git_repository' => $git_repository,
'git_branch' => $git_branch,
'git_full_url' => "git@$git_host:$git_repository.git",

View File

@ -78,7 +78,7 @@ public function submit()
$application_init = [
'name' => generateRandomName() . "-{$git_repository}:{$git_branch}",
'name' => generateRandomName(),
'git_repository' => $git_repository,
'git_branch' => $git_branch,
'build_pack' => 'nixpacks',