WIP Docker building

This commit is contained in:
2026-07-19 23:17:51 +02:00
parent fafb076f2b
commit 5e154cf654
5 changed files with 127 additions and 70 deletions
+8 -1
View File
@@ -18,9 +18,16 @@ class BlenderVersion:
self.minor = version[1]
self.hotfix = version[2]
def format_to_tag(self) -> str:
def format_to_tag(self, repository: str) -> str:
"""From version information, format to return a string"""
return f'{repository}:{self.major}.{self.minor}.{self.hotfix}'
def tag_name(self) -> str:
"""Return the tag name 'latest', 'X.Y.Z'..."""
return f'{self.major}.{self.minor}.{self.hotfix}'
def tag_name_slugify(self):
return f'{self.major}-{self.minor}-{self.hotfix}'
def __str__(self):
return str(self.major + '.' + self.minor + '.' + self.hotfix)