Skip to content

Commit aa4b9cf

Browse files
fix(ci): Description of push-image kinds (#948)
* fix(ci): Description of push-image kinds * style: pre-commit.ci auto fixes [...] --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent af40990 commit aa4b9cf

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

taskcluster/kinds/push-image/kind.yml

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ transforms:
1515

1616
task-defaults:
1717
worker-type: images
18-
description: "{name} image builder py{python_version}"
19-
name: "{name}-python{python_version}"
2018
worker:
2119
taskcluster-proxy: true
2220
docker-image: {in-tree: skopeo}

taskcluster/scriptworker_taskgraph/transforms/push_image.py

+9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
transforms = TransformSequence()
1313

1414

15+
@transforms.add
16+
def set_task_description(config, tasks):
17+
"""Set task description"""
18+
for task in tasks:
19+
env = config.params.get("docker_tag") or "(unknown environment)"
20+
task["description"] = f"Push {task['name']} {env} docker image to docker hub"
21+
yield task
22+
23+
1524
@transforms.add
1625
def set_task_requirements(config, tasks):
1726
"""Set dynamic task requirements"""

0 commit comments

Comments
 (0)