add custom git commit deployment
This commit is contained in:
@@ -21,7 +21,7 @@ class ApplicationController extends Controller
|
||||
if (!$application) {
|
||||
return redirect()->route('dashboard');
|
||||
}
|
||||
return view('project.application.configuration', ['application' => $application]);
|
||||
return view('project.application.configuration', ['application' => $application,]);
|
||||
}
|
||||
public function deployments()
|
||||
{
|
||||
|
||||
@@ -19,4 +19,13 @@ class Source extends Component
|
||||
{
|
||||
$this->application = Application::where('id', $this->applicationId)->first();
|
||||
}
|
||||
public function submit()
|
||||
{
|
||||
$this->validate();
|
||||
if (!$this->application->git_commit_sha) {
|
||||
$this->application->git_commit_sha = 'HEAD';
|
||||
}
|
||||
$this->application->save();
|
||||
$this->emit('saved', 'Application source updated!');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user