diff --git a/taskcluster/kinds/push-image/kind.yml b/taskcluster/kinds/push-image/kind.yml index 363356ba2..36e9abb7b 100644 --- a/taskcluster/kinds/push-image/kind.yml +++ b/taskcluster/kinds/push-image/kind.yml @@ -15,8 +15,6 @@ transforms: task-defaults: worker-type: images - description: "{name} image builder py{python_version}" - name: "{name}-python{python_version}" worker: taskcluster-proxy: true docker-image: {in-tree: skopeo} diff --git a/taskcluster/scriptworker_taskgraph/transforms/push_image.py b/taskcluster/scriptworker_taskgraph/transforms/push_image.py index 10b80ae4e..b42e0f176 100644 --- a/taskcluster/scriptworker_taskgraph/transforms/push_image.py +++ b/taskcluster/scriptworker_taskgraph/transforms/push_image.py @@ -12,6 +12,15 @@ transforms = TransformSequence() +@transforms.add +def set_task_description(config, tasks): + """Set task description""" + for task in tasks: + env = config.params.get("docker_tag") or "(unknown environment)" + task["description"] = f"Push {task['name']} {env} docker image to docker hub" + yield task + + @transforms.add def set_task_requirements(config, tasks): """Set dynamic task requirements"""