step name

This commit is contained in:
2025-05-22 18:06:08 +01:00
parent bcc7645a8a
commit 8575712931
4 changed files with 29 additions and 6 deletions

View File

@@ -143,7 +143,7 @@ class ServerController extends Controller
$server = $organisation->servers()->findOrFail($request->route('server'));
return inertia('servers/Show', [
'server' => $server->load('services.slices'),
'server' => $server->load('services.slices', 'serviceDeployments.steps', 'serviceDeployments.target'),
]);
}
}

View File

@@ -33,6 +33,7 @@ class DeployService implements ShouldQueue
$deploymentPlan = $driver->getDeploymentPlan($this->deployment->hash);
foreach ($deploymentPlan->steps as $index => $plannedStep) {
$step = $this->deployment->steps()->create([
'name' => $plannedStep->name,
'order' => $index + 1,
'status' => DeploymentStatus::PENDING,
'script' => $plannedStep->getSafeScript(),