Skip to content

Commit

Permalink
[CI] install docker-compose with retry (elastic#24069)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Feb 17, 2021
1 parent f32bf19 commit 97085fa
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 97085fa

Please sign in to comment.