Skip to content

vbem/setup-hcloud

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌼 GitHub Action to Setup Huawei Cloud KooCLI - hcloud CLI

🧪 Testing GitHub release (latest SemVer) Marketplace

About

KooCLI is the official command-line tool for Huawei Cloud. Huawei Cloud previously provided a simple installation action, but that repository currently returns 404. This action provides an alternative way to install KooCLI in your workflows. It supports Linux, macOS, and Windows runners, and can download KooCLI binaries from an internal mirror when needed.

Example usage

- name: Setup HW Cloud KooCLI
  uses: vbem/setup-hcloud@main

- name: Test KooCLI with Huawei Cloud STS
  env:
    HUAWEICLOUD_SDK_REGION: cn-north-4
    HUAWEICLOUD_SDK_AK: ${{ secrets.HUAWEICLOUD_SDK_AK }}
    HUAWEICLOUD_SDK_SK: ${{ secrets.HUAWEICLOUD_SDK_SK }}
  run: |
    hcloud sts GetCallerIdentity \
        --cli-region="${HUAWEICLOUD_SDK_REGION}" \
        --cli-access-key="${HUAWEICLOUD_SDK_AK}" \
        --cli-secret-key="${HUAWEICLOUD_SDK_SK}" \
        | jq -C

Inputs

ID Type Default Description
agree-privacy Boolean true Whether to accept the privacy statement during KooCLI installation.
check-version Boolean true Whether to check the KooCLI version after installation. Requires agree-privacy to be true.
base-url String https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/ Base URL for downloading the official KooCLI binaries. Set this to an internal mirror if needed.

Outputs

ID Type Description Example
url String The URL used to download the KooCLI binary. https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/huaweicloud-cli-linux-amd64.tar.gz
path String The path to the KooCLI binary on the runner. /usr/local/bin/hcloud
version String The detected KooCLI version. Current KooCLI version: 7.2.2

About

🌼 Setup Huawei Cloud KooCLI - `hcloud` CLI

Topics

Resources

License

Stars

Watchers

Forks

Contributors