Skip to content

Commit 5d35463

Browse files
authored
fix: drop everythign after @sha from image labels (ethereum#636)
1 parent 71f6e28 commit 5d35463

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shared_utils/shared_utils.star

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def label_maker(client, client_type, image, connected_client, extra_labels):
6969
labels = {
7070
"ethereum-package.client": client,
7171
"ethereum-package.client-type": client_type,
72-
"ethereum-package.client-image": image.replace("/", "-").replace(":", "-"),
72+
"ethereum-package.client-image": image.replace("/", "-")
73+
.replace(":", "_")
74+
.split("@")[0], # drop the sha256 part of the image from the label
7375
"ethereum-package.connected-client": connected_client,
7476
}
7577
labels.update(extra_labels) # Add extra_labels to the labels dictionary

0 commit comments

Comments
 (0)