mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 04:37:09 +00:00
17 lines
647 B
Bash
17 lines
647 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: aliyun-cli.sh
|
|
## Desc: Installs Alibaba Cloud CLI
|
|
################################################################################
|
|
|
|
# Source the helpers for use with the script
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
# Install Alibaba Cloud CLI
|
|
URL=$(curl -s https://api.github.com/repos/aliyun/aliyun-cli/releases/latest | jq -r '.assets[].browser_download_url | select(contains("aliyun-cli-linux"))')
|
|
download_with_retries $URL "/tmp"
|
|
tar xzf /tmp/aliyun-cli-linux-*-amd64.tgz
|
|
mv aliyun /usr/local/bin
|
|
|
|
invoke_tests "CLI.Tools" "Aliyun CLI"
|