TL;DR
not able to use HCLOUD_TOKEN while running hcloud create context
Expected behavior
when running HCLOUD_TOKEN="x" hcloud context create dummy this should work and use the token provided in the environment var.
Observed behavior
i get the error:
hcloud: context create is an interactive command
Minimal working example
we use this in our gitlab ci pipeline where hcloud is installed via brew brew install hcloud:
HCLOUD_TOKEN="${TF_VAR_hcloud_token}" hcloud context create gitlab-ci <<<"Y"
Log output
$ HCLOUD_TOKEN="${TF_VAR_hcloud_token}" hcloud context create gitlab-ci <<<"Y"
hcloud: context create is an interactive command
Cleaning up project directory and file based variables 00:01
ERROR: Job failed: exit code 1
Additional information
See commend as there the links are working
TL;DR
not able to use HCLOUD_TOKEN while running hcloud create context
Expected behavior
when running
HCLOUD_TOKEN="x" hcloud context create dummythis should work and use the token provided in the environment var.Observed behavior
i get the error:
Minimal working example
we use this in our gitlab ci pipeline where hcloud is installed via brew
brew install hcloud:Log output
Additional information
See commend as there the links are working