Skip to content

Commit

Permalink
allow to disable publish
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-ivona committed Dec 12, 2024
1 parent aece607 commit d896140
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/Services/DockerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public function add_container(Container $container){
* @throws ContainerException
*/
public function publish(){
if(env('LOCK_COMPOSE_SERVICES')){
return true;
}
return $this->publish_docker_compose();
}

Expand All @@ -93,9 +96,7 @@ private function publish_docker_compose(){

$yaml = Yaml::dump($docker_compose, 5);

$result = Storage::disk('cwd')->put('docker-compose.yml', $yaml);

return $result;
return Storage::disk('cwd')->put('docker-compose.yml', $yaml);
}

/**
Expand Down

0 comments on commit d896140

Please sign in to comment.