From 072850be0b90b1a4b768e3a1a2ea8ccf2666f5c1 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 30 May 2024 13:02:01 +0200 Subject: [PATCH] Refactor ApplicationDeploymentJob.php to remove unnecessary code and improve code structure --- app/Jobs/ApplicationDeploymentJob.php | 1 - app/Jobs/ApplicationDeploymentJobNew.php | 1 - 2 files changed, 2 deletions(-) diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php index 9d4f563cb..15259a082 100644 --- a/app/Jobs/ApplicationDeploymentJob.php +++ b/app/Jobs/ApplicationDeploymentJob.php @@ -620,7 +620,6 @@ private function push_to_docker_registry() ], ); } - $this->application_deployment_queue->addLogEntry("Image pushed to docker registry."); } catch (Exception $e) { $this->application_deployment_queue->addLogEntry("Failed to push image to docker registry. Please check debug logs for more information."); if ($forceFail) { diff --git a/app/Jobs/ApplicationDeploymentJobNew.php b/app/Jobs/ApplicationDeploymentJobNew.php index 6c9c59b36..dedd736da 100644 --- a/app/Jobs/ApplicationDeploymentJobNew.php +++ b/app/Jobs/ApplicationDeploymentJobNew.php @@ -720,7 +720,6 @@ private function push_to_docker_registry() ], ); } - $this->application_deployment_queue->addLogEntry("Image pushed to docker registry."); } catch (Exception $e) { $this->application_deployment_queue->addLogEntry("Failed to push image to docker registry. Please check debug logs for more information."); if ($forceFail) {