Skip to content

Commit

Permalink
[CI] install docker-compose with retry (#24069)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Feb 17, 2021
1 parent 410d900 commit 465750c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .ci/scripts/install-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@ DC_CMD="${HOME}/bin/docker-compose"

mkdir -p "${HOME}/bin"

curl -sSLo "${DC_CMD}" "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)"
chmod +x "${DC_CMD}"
if curl -sSLo "${DC_CMD}" "https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" ; then
chmod +x "${DC_CMD}"
else
echo "Something bad with the download, let's delete the corrupted binary"
if [ -e "${DC_CMD}" ] ; then
rm "${DC_CMD}"
fi
exit 1
fi

0 comments on commit 465750c

Please sign in to comment.