An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: git ls-remote
Andras Bacsai55f957df21d0
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 59d2a1e307..9fefde4a9b 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -516,9 +516,20 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncryptedprivate function check_git_if_build_needed(){$this->generate_git_import_commands();+ $private_key = base64_encode($this->application->private_key->private_key);+ ray($private_key);$this->execute_remote_command([- executeInDocker($this->deployment_uuid, "GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$this->customPort} -o Port={$this->customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\" git ls-remote {$this->fullRepoUrl} {$this->branch}"),+ executeInDocker($this->deployment_uuid, "mkdir -p /root/.ssh")+ ],+ [+ executeInDocker($this->deployment_uuid, "echo '{$private_key}' | base64 -d > /root/.ssh/id_rsa")+ ],+ [+ executeInDocker($this->deployment_uuid, "chmod 600 /root/.ssh/id_rsa")+ ],+ [+ executeInDocker($this->deployment_uuid, "GIT_SSH_COMMAND=\"ssh -o ConnectTimeout=30 -p {$this->customPort} -o Port={$this->customPort} -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa\" git ls-remote {$this->fullRepoUrl} {$this->branch}"),"hidden" => true,"save" => "git_commit_sha"],