Skip to content
Snippets Groups Projects
Commit 83c07836 authored by Lars Bilke's avatar Lars Bilke
Browse files

Fixed image file when supplying a tag.

parent e4dea702
No related branches found
No related tags found
No related merge requests found
...@@ -210,11 +210,11 @@ def main(): # pragma: no cover ...@@ -210,11 +210,11 @@ def main(): # pragma: no cover
if args.format == "singularity": if args.format == "singularity":
definition_file = "Singularity.def" definition_file = "Singularity.def"
definition_file_path = os.path.join(out_dir, definition_file) definition_file_path = os.path.join(out_dir, definition_file)
if img_file[0] == "-":
img_file = img_file[1:]
if args.tag != "": if args.tag != "":
tag = args.tag tag = args.tag
else: else:
if img_file[0] == "-":
img_file = img_file[1:]
tag = f"{args.registry}/{img_file.lower()}:latest" tag = f"{args.registry}/{img_file.lower()}:latest"
# TODO: # TODO:
# context_path_size = len(self.ogsdir) # context_path_size = len(self.ogsdir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment