mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-21 12:39:08 +01:00
SERVER-94794 Add retries to container registry login command (#27065)
GitOrigin-RevId: 2d768787bd3ca56d96568f3e5b3dab273797adc2
This commit is contained in:
parent
7859ca054c
commit
0df99863f7
@ -4,4 +4,11 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
|
||||
cd src
|
||||
|
||||
set -oe
|
||||
echo "${release_tools_container_registry_password}" | podman login --password-stdin --username ${release_tools_container_registry_username} ${release_tools_container_registry}
|
||||
attempts=0
|
||||
max_attempts=4
|
||||
|
||||
while ! echo "${release_tools_container_registry_password}" | podman login --password-stdin --username ${release_tools_container_registry_username} ${release_tools_container_registry}; do
|
||||
[ "$attempts" -ge "$max_attempts" ] && exit 1
|
||||
((attempts++))
|
||||
sleep 10
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user