Skip to content
This repository was archived by the owner on Dec 11, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions saasherder/saasherder.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ def process_image_tag(self, services, output_dir, force=False):
continue
output = ""
template_file = self.get_template_file(s)
l = 6 #How many chars to use from hash
if s.get("hash_length"):
l = s.get("hash_length")
l = s.get("hash_length", 7) #How many chars to use from hash
tag = "latest" if s["hash"] == "master" else s["hash"][:l]
parameters = [{"name": "IMAGE_TAG", "value": tag}]
service_params = s.get("parameters", {})
Expand Down Expand Up @@ -207,4 +205,4 @@ def print_objects(self, objects):
image = "%s:%s" % (image, s.get("hash")[0:6])
c["image"] = image
anymarkup.serialize_file(template, os.path.join(output_dir, "%s.yaml" % s.get("name")))
"""
"""