mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 13:14:29 +08:00
Clean up run-tests syntax
This commit is contained in:
@@ -166,8 +166,7 @@ download_image() {
|
||||
docker pull "${image}:${image_tag}" &> /dev/null
|
||||
}
|
||||
|
||||
if [ "$has_image" -eq 0 ] && ! download_image
|
||||
then
|
||||
if [ "$has_image" -eq 0 ] && ! download_image; then
|
||||
echo "Building run image ${image}:${image_tag}"
|
||||
|
||||
build_args=( --build-arg GIT_VERSION="$git_version" )
|
||||
@@ -182,8 +181,7 @@ then
|
||||
docker build "${build_args[@]}" -t "${image}:${image_tag}" .
|
||||
docker tag "${image}:${image_tag}" "${image}:latest"
|
||||
|
||||
if [[ -z "${DOCKER_HUB_USER:-}" || -z "${DOCKER_HUB_PASS:-}" ]]
|
||||
then
|
||||
if [[ -z "${DOCKER_HUB_USER:-}" || -z "${DOCKER_HUB_PASS:-}" ]]; then
|
||||
echo "Docker Hub credentials not set, skip push"
|
||||
else
|
||||
echo "Push ${image}:${image_tag} to Docker Hub"
|
||||
|
||||
Reference in New Issue
Block a user