Skip to content

Commit

Permalink
Merge pull request #290 from gdamjan/fix-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Yang authored Apr 20, 2020
2 parents d3b914b + ebed5d8 commit caa4001
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/in
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ jq -n "{
digest: $(echo $digest | jq -R .)
},
metadata: [
{ name: \"repository\", value: $(echo $repository | jq -R .) },
{ name: \"tag\", value: $(echo $tag | jq -R .) },
{ name: \"image\", value: $(echo $image_id | head -c 12 | jq -R .) }
]
}" >&3
}" | jq '{version: .version} + {metadata: [.metadata[] | select(.value != "")]}' >&3

0 comments on commit caa4001

Please sign in to comment.