Log into DockerHub prior to running CI builds

Closes gh-24038
This commit is contained in:
Andy Wilkinson
2020-11-04 20:31:49 +00:00
parent d5980be623
commit 1172dbfec9
2 changed files with 17 additions and 0 deletions

View File

@@ -5,4 +5,8 @@ if [[ -d $PWD/embedmongo && ! -d $HOME/.embedmongo ]]; then
ln -s "$PWD/embedmongo" "$HOME/.embedmongo"
fi
if [[ -n $DOCKER_HUB_USERNAME ]]; then
docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD
fi
cleanup_maven_repo "org.springframework.boot"