Skip to content

Commit

Permalink
fix(ci): Description of push-image kinds (#948)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
hneiva and pre-commit-ci[bot] authored Mar 28, 2024
1 parent af40990 commit aa4b9cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions taskcluster/kinds/push-image/kind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
9 changes: 9 additions & 0 deletions taskcluster/scriptworker_taskgraph/transforms/push_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit aa4b9cf

Please sign in to comment.