Skip to content

Commit

Permalink
tests/tox: consume docker registry credentials
Browse files Browse the repository at this point in the history
To avoid docker hub rate limit on PRs and nightlies jobs.

Signed-off-by: Dimitri Savineau <[email protected]>
(cherry picked from commit dcd81cc)
  • Loading branch information
dsavineau committed Aug 26, 2021
1 parent 152fcf4 commit 419ecf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ else
sudo chgrp "$(whoami)" /var/run/docker.sock
fi

if [ -n "${DOCKER_HUB_USERNAME}" ] && [ -n "${DOCKER_HUB_PASSWORD}" ]; then
docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"
fi

rm -rf "$WORKSPACE"/ceph-ansible || true
git clone -b "$CEPH_ANSIBLE_BRANCH" --single-branch https://github.com/ceph/ceph-ansible.git ceph-ansible

Expand Down

0 comments on commit 419ecf4

Please sign in to comment.