This action installs the Hetzner Cloud CLI in your PATH
.
The environment variable HCLOUD_TOKEN
is required for hcloud to work properly. See the hcloud getting started docs for details.
Setup the latest version:
steps:
- uses: hetznercloud/setup-hcloud@v1
- run: hcloud server-type list
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
Setup a specific version:
steps:
- uses: hetznercloud/setup-hcloud@v1
with:
hcloud-version: v1.41.1
- run: hcloud server-type list
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
hcloud-version
(Optional): Version of Hetzner Cloud CLI to install. Usinglatest
will install the latest version of hcloud.github-token
(Optional): A Personal Access Token or the Github Token to access the GitHub API. If none provided it will use the default Github Token.
hcloud-version
: Version of the Hetzner Cloud CLI that was installed.
The scripts and documentation in this project are released under the MIT License