Refactor ApplicationDeploymentJob.php to remove unnecessary code and improve code structure

This commit is contained in:
Andras Bacsai 2024-05-30 13:02:01 +02:00
parent 71d120bc4e
commit 072850be0b
2 changed files with 0 additions and 2 deletions

View File

@ -620,7 +620,6 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
], ],
); );
} }
$this->application_deployment_queue->addLogEntry("Image pushed to docker registry.");
} catch (Exception $e) { } catch (Exception $e) {
$this->application_deployment_queue->addLogEntry("Failed to push image to docker registry. Please check debug logs for more information."); $this->application_deployment_queue->addLogEntry("Failed to push image to docker registry. Please check debug logs for more information.");
if ($forceFail) { if ($forceFail) {

View File

@ -720,7 +720,6 @@ class ApplicationDeploymentJobNew implements ShouldQueue, ShouldBeEncrypted
], ],
); );
} }
$this->application_deployment_queue->addLogEntry("Image pushed to docker registry.");
} catch (Exception $e) { } catch (Exception $e) {
$this->application_deployment_queue->addLogEntry("Failed to push image to docker registry. Please check debug logs for more information."); $this->application_deployment_queue->addLogEntry("Failed to push image to docker registry. Please check debug logs for more information.");
if ($forceFail) { if ($forceFail) {