Skip to content

Commit

Permalink
fix(decoder): ensure tag in harbor decoder
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Braun <rainbowstack@gmail.com>
  • Loading branch information
bluebrown committed Apr 14, 2024
1 parent 05b55de commit 6cb5b1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin/builtin/starlark/decoder.harbor@v1.star
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ def main(input):

output = []
for resource in event["resources"]:
output.append(resource["resource_url"])
parts = resource["resource_url"].split("@")
name = parts.split(":")[0]
output.append(name + ":" + resource["tag"] + "@" + resource["digest"])

return output

0 comments on commit 6cb5b1e

Please sign in to comment.