Skip to content

Commit

Permalink
[CI] install docker-compose with retry (#24069) (#24084)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Feb 17, 2021
1 parent 2aff8bd commit 78be7d0
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 @@ -9,5 +9,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 78be7d0

Please sign in to comment.