hypercli icon indicating copy to clipboard operation
hypercli copied to clipboard

Environment Variables for CI/CD?

Open aldrinleal opened this issue 6 years ago • 1 comments

Hello,

I'm trying to make hypercli work under CircleCI, and I've having problems. Especifically, I'm under the impression that only setting HYPER_ACCESS and HYPER_SECRET should suffice. However, it always complains that the region is not configured. Which is weird, considering it should default to us-west-1 anyway.

Am I missing any details, or is it supposed to work differently?

Thank you

aldrinleal avatar Apr 02 '18 21:04 aldrinleal

@aldrinleal

I do a test, it looks OK.

➜  mv ~/.hyper/config.json ~/.hyper/config.json.bak
➜  unset HYPER_SECRET
➜  unset HYPER_ACCESS
➜  hyper images
WARNING: null cloud config
Error response from daemon: Unauthorized

➜  export HYPER_ACCESS=8GRNA8xxxxxxxxxxxxxxxxxxxxAXO9
➜  export HYPER_SECRET=E1lr8VDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx7nenr
➜  hyper images
REPOSITORY                         TAG                 IMAGE ID            CREATED             SIZE
gcr.io/google-containers/busybox   latest              e7d168d7db45        3 years ago         2.43 MB

Can you provide more details?

Jimmy-Xu avatar Jul 18 '18 03:07 Jimmy-Xu