mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
[ubuntu] Cleanup bash scripts (#9076)
* [ubuntu] Cleanup bash scripts * Fix ms-repos lsb_release * Fix install-bicep url * Fix install-nvm
This commit is contained in:
committed by
GitHub
parent
e16b5524ff
commit
1658c2e905
@@ -8,13 +8,14 @@
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
# Install docker-compose v1 from releases
|
||||
URL="https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64"
|
||||
curl -fsSL "${URL}" -o /tmp/docker-compose-v1
|
||||
# Download docker-compose v1 from releases
|
||||
binary_path=$(download_with_retry "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64")
|
||||
|
||||
# Supply chain security - Docker Compose v1
|
||||
external_hash="f3f10cf3dbb8107e9ba2ea5f23c1d2159ff7321d16f0a23051d68d8e2547b323"
|
||||
use_checksum_comparison "/tmp/docker-compose-v1" "${external_hash}"
|
||||
install /tmp/docker-compose-v1 /usr/local/bin/docker-compose
|
||||
use_checksum_comparison "${binary_path}" "${external_hash}"
|
||||
|
||||
# Install docker-compose v1
|
||||
install "${binary_path}" "/usr/local/bin/docker-compose"
|
||||
|
||||
invoke_tests "Tools" "Docker-compose v1"
|
||||
|
||||
Reference in New Issue
Block a user