require image_tag and add %AIO_CHANNEL% variable

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-09-07 14:26:42 +02:00
parent 8e4678fe82
commit 6e17dec951
5 changed files with 22 additions and 5 deletions

View file

@ -269,7 +269,7 @@ class ContainerDefinitionFetcher
$init = $entry['init'];
}
$imageTag = '';
$imageTag = '%AIO_CHANNEL%';
if (isset($entry['image_tag'])) {
$imageTag = $entry['image_tag'];
}

View file

@ -49,7 +49,7 @@ class DockerActionManager
private function BuildImageName(Container $container) : string {
$tag = $container->GetImageTag();
if ($tag === '') {
if ($tag === '%AIO_CHANNEL%') {
$tag = $this->GetCurrentChannel();
}
return $container->GetContainerName() . ':' . $tag;
@ -100,7 +100,7 @@ class DockerActionManager
public function GetContainerUpdateState(Container $container) : IContainerState
{
$tag = $container->GetImageTag();
if ($tag === '') {
if ($tag === '%AIO_CHANNEL%') {
$tag = $this->GetCurrentChannel();
}