Skip to content

Commit

Permalink
Merge pull request #11 from SethHollandsworth/feature/specify_image_b…
Browse files Browse the repository at this point in the history
…y_sha

making it so you can specify images by their sha256 value
  • Loading branch information
SethHollandsworth authored Feb 14, 2023
2 parents b835624 + c6fe087 commit d8f8645
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/confcom/azext_confcom/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def __init__(
) -> None:
self.containerImage = containerImage
if ":" in containerImage:
self.base, self.tag = containerImage.split(":")
self.base, self.tag = containerImage.split(":", 1)
else:
self.base, self.tag = containerImage, "latest"
self._environmentRules = environmentRules
Expand Down
4 changes: 4 additions & 0 deletions src/confcom/azext_confcom/template_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def get_image_info(progress, message_queue, client, tar_mapping, image):
image_info = None
raw_image = None
image_name = f"{image.base}:{image.tag}"
if len(image.tag.split(":")) > 1:
eprint(
f"The image name: {image.tag} cannot have the digest present to use a tarball as the image source"
)
# only try to grab the info locally if that's absolutely what
# we want to do
if tar_mapping:
Expand Down

0 comments on commit d8f8645

Please sign in to comment.