add credentials to services

This commit is contained in:
2025-04-09 11:09:40 +01:00
parent a2a3e9002d
commit eefe6243bc
7 changed files with 39 additions and 29 deletions

View File

@@ -17,14 +17,13 @@ class DeployService implements ShouldQueue
public function __construct(
public Service $service,
public ?string $defaultPassword = null,
) {
//
}
public function handle(): void
{
$driver = $this->service->driver($this->defaultPassword);
$driver = $this->service->driver();
$this->service->update([
'status' => ServiceStatus::INSTALLING,
]);
@@ -37,7 +36,7 @@ class DeployService implements ShouldQueue
'status' => DeploymentStatus::PENDING,
'script' => $plannedStep->getSafeScript(),
'secrets' => [
'defaultPassword' => $this->defaultPassword,
'password' => $this->service->credentials['password'],
],
]);
if ($index === 0) {