mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[Ubuntu] Revert hardcoded docker-compose version (#2588)
This commit is contained in:
committed by
GitHub
parent
f5b6afebd0
commit
45d672739e
@@ -3,14 +3,9 @@
|
||||
## File: docker-compose.sh
|
||||
## Desc: Installs Docker Compose
|
||||
################################################################################
|
||||
source $HELPER_SCRIPTS/os.sh
|
||||
|
||||
# Install latest docker-compose from releases
|
||||
URL=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(endswith("docker-compose-Linux-x86_64"))')
|
||||
if isUbuntu16 || isUbuntu18 ; then
|
||||
# https://github.com/docker/compose/issues/8048
|
||||
URL="https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64"
|
||||
fi
|
||||
curl -L $URL -o /usr/local/bin/docker-compose
|
||||
chmod +x /usr/local/bin/docker-compose
|
||||
|
||||
|
||||
Reference in New Issue
Block a user