mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
add image_tag to containers definition
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
2cf6c7401e
commit
c69a5d2065
4 changed files with 26 additions and 2 deletions
|
|
@ -48,7 +48,11 @@ class DockerActionManager
|
|||
}
|
||||
|
||||
private function BuildImageName(Container $container) : string {
|
||||
return $container->GetContainerName() . ':' . $this->GetCurrentChannel();
|
||||
$tag = $container->GetImageTag();
|
||||
if ($tag === '') {
|
||||
$tag = $this->GetCurrentChannel();
|
||||
}
|
||||
return $container->GetContainerName() . ':' . $tag;
|
||||
}
|
||||
|
||||
public function GetContainerRunningState(Container $container) : IContainerState
|
||||
|
|
@ -95,7 +99,10 @@ class DockerActionManager
|
|||
|
||||
public function GetContainerUpdateState(Container $container) : IContainerState
|
||||
{
|
||||
$tag = $this->GetCurrentChannel();
|
||||
$tag = $container->GetImageTag();
|
||||
if ($tag === '') {
|
||||
$tag = $this->GetCurrentChannel();
|
||||
}
|
||||
|
||||
$runningDigests = $this->GetRepoDigestsOfContainer($container->GetIdentifier());
|
||||
if ($runningDigests === null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue