Skip to content

setup-hcloud

Actions

About

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

🌼 GitHub Action to Setup Huawei Cloud KooCLI - hcloud CLI

🧪 Testing GitHub release (latest SemVer) Marketplace

About

The KooCLI is the official command-line tool provided by Huawei Cloud. It once provided an official simple installation action, but it is currently giving a 404 error for unknown reasons. This repository provides an alternative GitHub Action to install KooCLI in your workflow. It supports both Linux/macOS and Windows runners, and allows you to specify your internal mirror for downloading KooCLI binaries if needed.

Example usage

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

- name: Test CLI by HW Cloud STS service
  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 agree privacy statement when installing KooCLI.
check-version Boolean true Whether to check KooCLI version after installation (must work with agree-privacy).
base-url String https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/ Base URL for downloading KooCLI official binaries. You can set it to your internal mirror if needed.

Outputs

ID Type Description Example
url String The URL used to download KooCLI binary. https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/huaweicloud-cli-linux-amd64.tar.gz
path String Path to KooCLI binary in the runner. /usr/local/bin/hcloud
version String The checked 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.3
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.