Merge pull request #5794 from christopherpickering/patch-1
fix(docker-compose build) added --no-cache flag
This commit is contained in:
		| @@ -507,7 +507,11 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue | |||||||
|             if ($this->env_filename) { |             if ($this->env_filename) { | ||||||
|                 $command .= " --env-file {$this->workdir}/{$this->env_filename}"; |                 $command .= " --env-file {$this->workdir}/{$this->env_filename}"; | ||||||
|             } |             } | ||||||
|  |             if ($this->force_rebuild) { | ||||||
|  |                 $command .= " --project-name {$this->application->uuid} --project-directory {$this->workdir} -f {$this->workdir}{$this->docker_compose_location} build --pull --no-cache"; | ||||||
|  |             else | ||||||
|                 $command .= " --project-name {$this->application->uuid} --project-directory {$this->workdir} -f {$this->workdir}{$this->docker_compose_location} build --pull"; |                 $command .= " --project-name {$this->application->uuid} --project-directory {$this->workdir} -f {$this->workdir}{$this->docker_compose_location} build --pull"; | ||||||
|  |             } | ||||||
|             $this->execute_remote_command( |             $this->execute_remote_command( | ||||||
|                 [executeInDocker($this->deployment_uuid, $command), 'hidden' => true], |                 [executeInDocker($this->deployment_uuid, $command), 'hidden' => true], | ||||||
|             ); |             ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andras Bacsai
					Andras Bacsai