CTFd/ctfcli

`ctf challenge deploy` with registry succeeds but faults with TypeError

pl4nty opened this issue · 1 comments

ctf challenge deploy chal registry://myregistry fails with TypeError: cannot unpack non-iterable NoneType object, because it tries to unpack data that isn't returned when deploying to a registry:

status, domain, port = DEPLOY_HANDLERS[url.scheme](

def registry(challenge, host):
# Build image
image_name = build_image(challenge=challenge)
print(f"Built {image_name}")
url = urlparse(host)
tag = f"{url.netloc}{url.path}"
subprocess.call(["docker", "tag", image_name, tag])
subprocess.call(["docker", "push", tag])

This is a known issue that we are expecting to work on later this year.