Skip to content

Commit

Permalink
Fix check for non-stable docker image in the CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
amaltaro committed Aug 30, 2024
1 parent 707fcee commit 41e5a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ if [ "$action" == "build" ]; then
fi

if [ "$action" == "push" ]; then
image_exist=`docker images | grep $tag | grep $service | grep -v ${tag}${suffix}`
image_exist_stable=`docker images | grep ${tag}${suffix} | grep $service`
image_exist=$(docker images | grep $tag | grep $service | grep -v ${tag}-stable)
image_exist_stable=$(docker images | grep ${tag}${suffix} | grep $service)
echo $image_exist
echo $image_exist_stable

Expand Down

0 comments on commit 41e5a49

Please sign in to comment.