Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 419ecf4

Browse files
committed
tests/tox: consume docker registry credentials
To avoid docker hub rate limit on PRs and nightlies jobs. Signed-off-by: Dimitri Savineau <[email protected]> (cherry picked from commit dcd81cc)
1 parent 152fcf4 commit 419ecf4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/tox.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ else
4343
sudo chgrp "$(whoami)" /var/run/docker.sock
4444
fi
4545

46+
if [ -n "${DOCKER_HUB_USERNAME}" ] && [ -n "${DOCKER_HUB_PASSWORD}" ]; then
47+
docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"
48+
fi
49+
4650
rm -rf "$WORKSPACE"/ceph-ansible || true
4751
git clone -b "$CEPH_ANSIBLE_BRANCH" --single-branch https://github.com/ceph/ceph-ansible.git ceph-ansible
4852

0 commit comments

Comments
 (0)