mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 12:14:07 +00:00
feat: push locally built image to docker registry
ui: fixes here and there
This commit is contained in:
1 parent
e33fec0e1a
commit
f88e3c5b29
9 files changed
+152
-68
No files matched your search
@@ -38,10 +38,10 @@ class Rollback extends Component
|
||||
]);
|
||||
}
|
||||
|
||||
public function loadImages()
|
||||
public function loadImages($showToast = false)
|
||||
{
|
||||
try {
|
||||
$image = $this->application->uuid;
|
||||
$image = $this->application->docker_registry_image_name ?? $this->application->uuid;
|
||||
if ($this->application->destination->server->isFunctional()) {
|
||||
$output = instant_remote_process([
|
||||
"docker inspect --format='{{.Config.Image}}' {$this->application->uuid}",
|
||||
@@ -66,6 +66,7 @@ class Rollback extends Component
|
||||
];
|
||||
})->toArray();
|
||||
}
|
||||
$showToast && $this->emit('success', 'Images loaded.');
|
||||
return [];
|
||||
} catch (\Throwable $e) {
|
||||
return handleError($e, $this);
|
||||
|
||||
Reference in new issue
Block a user