Is there anyway to inject keys into the studio without resorting to volume mounts?
This is the scenario I am running into:
- I am running Gitlab-Runners inside a Docker Executor.
- I spin up an image with
hab
cli anddocker
cli. - I run this inside the Docker Executor
export HAB_ORIGIN=ci
hab origin key generate "${HAB_ORIGIN}"
hab studio -D --no-tty run 'source .studiorc-ci && build /path/to/plan.sh'
- I am presented with this error:
hab-studio: Importing 'ci' secret origin key
✗✗✗
✗✗✗ Crypto error: No revisions found for ci sig key
✗✗✗
Error exporting ci key
–
I did generate the key beforehand. The one problem, I did notice is that the docker --volume
mounts are /hab/cache/keys
from the base host where the docker sock was originally created. Not from within the gitlab runner docker executor …
So now I’m at a loss on how I can inject this without resorting to any volume mounts.