Skip to content

Commit

Permalink
test/push_images.sh: try logging in until it succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Jun 17, 2020
1 parent 5985583 commit 533f1ca
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/push_images.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/bin/bash

for i in {1..10}; do
docker login -u username -p password localhost
if [ $? -eq 0 ]; then
break
fi
while ! docker login -u username -p password localhost; do
sleep 1
done
docker push localhost/update-data
Expand Down

0 comments on commit 533f1ca

Please sign in to comment.