oops
This commit is contained in:
@@ -24,13 +24,13 @@ class DeployService implements ShouldQueue
|
|||||||
public function handle(): void
|
public function handle(): void
|
||||||
{
|
{
|
||||||
$driver = $this->service->driver();
|
$driver = $this->service->driver();
|
||||||
$deploymentPlan = $driver->getDeploymentPlan($this->deployment->hash);
|
|
||||||
$this->service->update([
|
$this->service->update([
|
||||||
'status' => ServiceStatus::INSTALLING,
|
'status' => ServiceStatus::INSTALLING,
|
||||||
]);
|
]);
|
||||||
$this->deployment = $this->service->deployments()->create([
|
$this->deployment = $this->service->deployments()->create([
|
||||||
'status' => DeploymentStatus::PENDING,
|
'status' => DeploymentStatus::PENDING,
|
||||||
]);
|
]);
|
||||||
|
$deploymentPlan = $driver->getDeploymentPlan($this->deployment->hash);
|
||||||
foreach ($deploymentPlan->steps as $index => $plannedStep) {
|
foreach ($deploymentPlan->steps as $index => $plannedStep) {
|
||||||
$step = $this->deployment->steps()->create([
|
$step = $this->deployment->steps()->create([
|
||||||
'order' => $index + 1,
|
'order' => $index + 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user