-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
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:
ctfcli/ctfcli/cli/challenges.py
Line 332 in c27282b
status, domain, port = DEPLOY_HANDLERS[url.scheme]( |
Lines 45 to 52 in c27282b
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]) |
Metadata
Metadata
Assignees
Labels
No labels