This commit is contained in:
Andras Bacsai 2023-03-31 16:39:15 +02:00
parent f246d06629
commit 8c94bcb27b

View File

@ -89,7 +89,7 @@ public function handle(): void
// Pull builder image // Pull builder image
$this->executeNow([ $this->executeNow([
"echo 'Starting deployment of {$this->application->git_repository}:{$this->application->git_branch}...", "echo 'Starting deployment of {$this->application->git_repository}:{$this->application->git_branch}...'",
"echo -n 'Pulling latest version of the builder image (ghcr.io/coollabsio/coolify-builder)... '", "echo -n 'Pulling latest version of the builder image (ghcr.io/coollabsio/coolify-builder)... '",
"docker run --pull=always -d --name {$this->deployment_uuid} --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coollabsio/coolify-builder >/dev/null 2>&1", "docker run --pull=always -d --name {$this->deployment_uuid} --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/coollabsio/coolify-builder >/dev/null 2>&1",
"echo 'Done.'", "echo 'Done.'",
@ -245,7 +245,6 @@ private function set_labels_for_applications()
private function executeNow(array $command, string $propertyName = null, bool $hideFromOutput = false) private function executeNow(array $command, string $propertyName = null, bool $hideFromOutput = false)
{ {
$commandText = collect($command)->implode("\n"); $commandText = collect($command)->implode("\n");
dd($commandText);
$this->activity->properties = $this->activity->properties->merge([ $this->activity->properties = $this->activity->properties->merge([
'command' => $commandText, 'command' => $commandText,