Fix travis rate limiting

Should close #354
This commit is contained in:
Sandro Jäckel 2021-01-15 10:39:24 +01:00
parent 82892d8ad8
commit 8436dfe8a0
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -47,6 +47,11 @@ else
fi
fi
# Travis gets rate limited by Docker HUB.
if [[ ${CI:-} == true && -n $DOCKER_PASSWORD && -n $DOCKER_USERNAME ]]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
fi
# shellcheck disable=SC2068
eval docker build . ${TAGS[@]:-}
docker images