Skip to content

Commit fb84ae8

Browse files
authored
fix(workflow): Material name (#2080)
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
1 parent 4a0babc commit fb84ae8

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,14 @@ jobs:
117117
118118
# Extract repo name (component after last slash, before colon)
119119
repo_name="$(echo $entry | sed 's#.*/##' | sed 's#:.*##')"
120-
120+
121+
# Extract tag and architecture from the entry
122+
tag_with_arch="$(echo $entry | sed 's#.*:##')"
123+
121124
# Extract just the architecture (after the last dash)
122-
arch="$(echo $material_name | sed 's#.*-##')"
123-
124-
# Create attestation names (without version)
125+
arch="$(echo $tag_with_arch | sed 's#.*-##')"
126+
127+
# Create attestation names (without version or colon)
125128
container_name="${repo_name}-${arch}"
126129
sbom_name="${repo_name}-sbom-${arch}"
127130

0 commit comments

Comments
 (0)