From 8b95b3c1bfdd6769d414fb0e4becf5ff66f1c125 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 11 Jun 2024 13:12:53 +0200 Subject: [PATCH] fix: just restart --- app/Jobs/ApplicationDeploymentJob.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php index 149cde122..c7b28f275 100644 --- a/app/Jobs/ApplicationDeploymentJob.php +++ b/app/Jobs/ApplicationDeploymentJob.php @@ -316,7 +316,6 @@ private function decide_what_to_do() { if ($this->restart_only) { $this->just_restart(); - return; } elseif ($this->pull_request_id !== 0) { $this->deploy_pull_request(); @@ -737,9 +736,8 @@ private function just_restart() $this->check_git_if_build_needed(); $this->generate_image_names(); $this->check_image_locally_or_remotely(); - if ($this->should_skip_build()) { - return; - } + $this->should_skip_build(); + $this->next(ApplicationDeploymentStatus::FINISHED->value); } private function should_skip_build()