Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.2 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.2 KB

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