Skip to content

Commit 344e704

Browse files
committed
Add handling for external task image format in docker worker
1 parent 2334c7c commit 344e704

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/taskgraph/transforms/task.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,13 @@ def build_docker_worker_payload(config, task, task_def):
595595
"namespace": image["indexed"],
596596
"type": "indexed-image",
597597
}
598+
elif "task-id" in image:
599+
# External task image - convert to taskId format for Taskcluster
600+
image = {
601+
"path": image["path"],
602+
"taskId": image["task-id"],
603+
"type": image["type"],
604+
}
598605
else:
599606
raise Exception("unknown docker image type")
600607

0 commit comments

Comments
 (0)