Skip to content

Commit

Permalink
ci(workflows): fix docker sign command (#8611)
Browse files Browse the repository at this point in the history
ci: fix docker sign command

Signed-off-by: moabu <47318409+moabu@users.noreply.github.com>
Signed-off-by: Yuriy Movchan <Yuriy.Movchan@gmail.com>
  • Loading branch information
moabu authored and yurem committed May 31, 2024
1 parent 3a8b301 commit 57522d5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker_build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,12 @@ jobs:
TAGS: ${{ steps.prep.outputs.tags }}
run: |
images=""
for tag in ${TAGS}; do
for tag in ${TAGS//,/ }; do
if [[ $tag == *"_dev"* && $TAGS == *","* ]]; then
continue
fi
images+="${tag}@${DIGEST} "
done
cosign sign --yes -a author=JanssenProject ${images}
if [[ -n $images ]]; then
cosign sign --yes -a author=JanssenProject ${images}
fi

0 comments on commit 57522d5

Please sign in to comment.