diff --git a/app/Http/Livewire/Project/Application/General.php b/app/Http/Livewire/Project/Application/General.php index afe1b62dd..acc377094 100644 --- a/app/Http/Livewire/Project/Application/General.php +++ b/app/Http/Livewire/Project/Application/General.php @@ -76,6 +76,9 @@ class General extends Component ]; + public function updatedApplicationBuildPack(){ + $this->submit(); + } public function instantSave() { // @TODO: find another way - if possible @@ -125,6 +128,12 @@ class General extends Component { try { $this->validate(); + if (data_get($this->application,'build_pack') === 'dockerimage') { + $this->validate([ + 'application.docker_registry_image_name' => 'required', + 'application.docker_registry_image_tag' => 'required', + ]); + } if (data_get($this->application, 'fqdn')) { $domains = Str::of($this->application->fqdn)->trim()->explode(',')->map(function ($domain) { return Str::of($domain)->trim()->lower(); diff --git a/app/Http/Livewire/Project/New/PublicGitRepository.php b/app/Http/Livewire/Project/New/PublicGitRepository.php index ebcbb8253..f1f4e9833 100644 --- a/app/Http/Livewire/Project/New/PublicGitRepository.php +++ b/app/Http/Livewire/Project/New/PublicGitRepository.php @@ -72,10 +72,14 @@ class PublicGitRepository extends Component public function load_branch() { try { - $this->branch_found = false; $this->validate([ 'repository_url' => 'required|url' ]); + } catch (\Throwable $e) { + return handleError($e, $this); + } + try { + $this->branch_found = false; $this->get_git_source(); $this->get_branch(); $this->selected_branch = $this->git_branch; diff --git a/config/sentry.php b/config/sentry.php index aae1119e5..48463cf03 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ return [ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.75', + 'release' => '4.0.0-beta.76', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index 2d7480b05..5c888f006 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@ dockerfile)