This commit is contained in:
Andras Bacsai
2023-05-25 12:55:34 +02:00
parent acaacec82d
commit 2834d7f342
8 changed files with 17 additions and 58 deletions

View File

@@ -18,8 +18,6 @@ use Illuminate\Support\Facades\Storage;
use Spatie\Activitylog\Models\Activity;
use Symfony\Component\Yaml\Yaml;
use Illuminate\Support\Str;
use LocalStorage;
use Log;
use Spatie\Url\Url;
class ApplicationDeploymentJob implements ShouldQueue
@@ -205,7 +203,7 @@ COPY --from={$this->application->uuid}:{$this->git_commit}-build /app/{$this->ap
$this->fail();
} finally {
if (isset($this->docker_compose)) {
LocalStorage::deployments()->put(Str::kebab($this->application->name) . '/docker-compose.yml', $this->docker_compose);
Storage::disk('deployments')->put(Str::kebab($this->application->name) . '/docker-compose.yml', $this->docker_compose);
}
$this->execute_now(["docker rm -f {$this->deployment_uuid} >/dev/null 2>&1"], hideFromOutput: true);
}