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

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌼 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

About

🌼 Setup Huawei Cloud KooCLI - `hcloud` CLI

Topics

Resources

License

Stars

Watchers

Forks

Contributors