Skip to content

setup-hcloud

Actions

About

🌼 Setup Huawei Cloud KooCLI - hcloud CLI
v1.0.4
Latest
By vbem
Star (2)

🌼 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

setup-hcloud is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

🌼 Setup Huawei Cloud KooCLI - hcloud CLI
v1.0.4
Latest
By vbem

setup-hcloud is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.