diff options
author | w0rp <devw0rp@gmail.com> | 2023-02-13 04:24:54 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2023-02-13 04:24:54 +0000 |
commit | ab7757b532e71aff701dca5094f5800241b07441 (patch) | |
tree | 8873b7094c4fa89c6187be961773c78233d65505 | |
parent | 9c45358aab5a030e40dbc576c3b0736b8b0e0d36 (diff) | |
download | ale-ab7757b532e71aff701dca5094f5800241b07441.zip |
Clean up run-tests syntax
-rwxr-xr-x | run-tests | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -166,24 +166,22 @@ 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" ) if [[ $arch != x86_64 ]]; then echo "Building testbed/vim:24 for $arch" - testbed_vim_ref=902917c4caa50db2f2e80009b839605602f9f014 + testbed_vim_ref=902917c4caa50db2f2e80009b839605602f9f014 docker build -t "testbed/vim:$testbed_vim_ref" "https://github.com/Vimjas/vim-testbed.git#$testbed_vim_ref" - build_args+=( --build-arg TESTBED_VIM_VERSION="$testbed_vim_ref" ) + build_args+=( --build-arg TESTBED_VIM_VERSION="$testbed_vim_ref" ) fi 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" |