envbuilder
envbuilder copied to clipboard
envbuilder - pass ssh key
Is it possible to pass the coder pubkey to envbuilder?
#1: 📦 Cloning [email protected]:lorem/ipsum.git to /workspaces/lorem-ipsum...
#1: 🔑 Using SSH authentication!
#1: 🔑 No SSH key found, falling back to agent!
@reiser Have you tried setting ENVBUILDER_GIT_SSH_KEY_PATH to the path of a private key mounted inside the container?
in coder you can try "ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64": base64encode(data.coder_workspace_owner.me.ssh_private_key)
This has been implemented. https://github.com/coder/envbuilder/issues/333