Skip to content

Setup hcloud (Hetzner Cloud CLI)

Actions
Setup hcloud and add it to the PATH
v2
Latest
By 3bit
Star (8)

Tags

 (1)

setup-hcloud

GitHub Actions status

This action sets up the Hetzner Cloud CLI for use in actions.

Usage

There is an optional parameter hcloud-version to setup a specific version of hcloud. The default value for hcloud-version is latest, which will resolve to the version https://github.com/hetznercloud/cli/releases/latest points to.

The environment variable HCLOUD_TOKEN is required for hcloud to work properly. More info can be found here.

Basic usage - setup the latest version:

steps:
- uses: actions/checkout@main
- uses: 3bit/setup-hcloud@v2
- run: hcloud version
  env:
    HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}

Setup specific version:

steps:
- uses: actions/checkout@main
- uses: 3bit/setup-hcloud@v2
  with:
    hcloud-version: '1.19.1'
- run: hcloud version
  env:
    HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}

License

The scripts and documentation in this project are released under the MIT License

Setup hcloud (Hetzner Cloud CLI) 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 hcloud and add it to the PATH
v2
Latest
By 3bit

Tags

 (1)

Setup hcloud (Hetzner Cloud CLI) 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.