Skip to content

Commit

Permalink
Do not try to pull non-tagged images
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Squizzato <[email protected]>
  • Loading branch information
squizzi committed Nov 4, 2024
1 parent 1e34991 commit 1bf7df5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/bundle-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ do
continue
fi

tag=$(echo $image | cut -d':' -f2)
if [[ $tag == "<none>" ]]; then
echo "Will not pull image: $image with tag <none>, continuing..."
continue
fi

docker pull $image
if [[ $? -ne 0 ]]; then
echo "Error: Failed to pull $image"
Expand Down

0 comments on commit 1bf7df5

Please sign in to comment.