Skip to content

Commit

Permalink
fix: drop everythign after @sha from image labels (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed May 23, 2024
1 parent 71f6e28 commit 5d35463
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared_utils/shared_utils.star
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def label_maker(client, client_type, image, connected_client, extra_labels):
labels = {
"ethereum-package.client": client,
"ethereum-package.client-type": client_type,
"ethereum-package.client-image": image.replace("/", "-").replace(":", "-"),
"ethereum-package.client-image": image.replace("/", "-")
.replace(":", "_")
.split("@")[0], # drop the sha256 part of the image from the label
"ethereum-package.connected-client": connected_client,
}
labels.update(extra_labels) # Add extra_labels to the labels dictionary
Expand Down

0 comments on commit 5d35463

Please sign in to comment.