Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hetznercloud/setup-hcloud

GitHub action to install the Hetzner Cloud CLI.
https://github.com/hetznercloud/setup-hcloud

actions hcloud hetzner hetzner-cloud setup-actions

Last synced: about 1 month ago
JSON representation

GitHub action to install the Hetzner Cloud CLI.

Awesome Lists containing this project

README

        

# setup-hcloud

[![CI](https://github.com/hetznercloud/setup-hcloud/actions/workflows/ci.yml/badge.svg)](https://github.com/hetznercloud/setup-hcloud/actions/workflows/ci.yml)
[![Codecov](https://codecov.io/gh/hetznercloud/setup-hcloud/graph/badge.svg?token=R4YEGxLNvM)](https://codecov.io/gh/hetznercloud/setup-hcloud/tree/main)

This action installs the [Hetzner Cloud CLI](https://github.com/hetznercloud/cli) in your `PATH`.

# Usage

The environment variable `HCLOUD_TOKEN` is required for hcloud to work properly. See the [hcloud getting started docs](https://github.com/hetznercloud/cli#getting-started) for details.

**Setup the latest version:**

```yaml
steps:
- uses: hetznercloud/setup-hcloud@v1

- run: hcloud server-type list
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
```

**Setup a specific version:**

```yaml
steps:
- uses: hetznercloud/setup-hcloud@v1
with:
hcloud-version: v1.41.1

- run: hcloud server-type list
env:
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
```

### Inputs

- `hcloud-version` (Optional): Version of Hetzner Cloud CLI to install. Using `latest` will install the
[latest version of hcloud](https://github.com/hetznercloud/cli/releases/latest).
- `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.

### Outputs

- `hcloud-version`: Version of the Hetzner Cloud CLI that was installed.

# License

The scripts and documentation in this project are released under the [MIT License](LICENSE)