fix: do not rebuild dockerfile based apps twice
This commit is contained in:
parent
d31f75d1ec
commit
2b64b9de63
@ -469,17 +469,17 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted
|
|||||||
$this->set_base_dir();
|
$this->set_base_dir();
|
||||||
$this->generate_image_names();
|
$this->generate_image_names();
|
||||||
$this->clone_repository();
|
$this->clone_repository();
|
||||||
// if (!$this->force_rebuild) {
|
if (!$this->force_rebuild) {
|
||||||
// $this->check_image_locally_or_remotely();
|
$this->check_image_locally_or_remotely();
|
||||||
// if (str($this->saved_outputs->get('local_image_found'))->isNotEmpty() && !$this->application->isConfigurationChanged()) {
|
if (str($this->saved_outputs->get('local_image_found'))->isNotEmpty() && !$this->application->isConfigurationChanged()) {
|
||||||
// $this->create_workdir();
|
$this->create_workdir();
|
||||||
// $this->application_deployment_queue->addLogEntry("No configuration changed & image found ({$this->production_image_name}) with the same Git Commit SHA. Build step skipped.");
|
$this->application_deployment_queue->addLogEntry("No configuration changed & image found ({$this->production_image_name}) with the same Git Commit SHA. Build step skipped.");
|
||||||
// $this->generate_compose_file();
|
$this->generate_compose_file();
|
||||||
// $this->push_to_docker_registry();
|
$this->push_to_docker_registry();
|
||||||
// $this->rolling_update();
|
$this->rolling_update();
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
$this->cleanup_git();
|
$this->cleanup_git();
|
||||||
$this->generate_compose_file();
|
$this->generate_compose_file();
|
||||||
$this->generate_build_env_variables();
|
$this->generate_build_env_variables();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user