-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): add example for ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,18 @@ envbuilder will assume SSH authentication. You have the following options: | |
ghcr.io/coder/envbuilder | ||
``` | ||
|
||
Alternatively, you can set `ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64` to the | ||
base64-encoded content of your private key. Example: | ||
|
||
```bash | ||
docker run -it --rm \ | ||
-v /tmp/envbuilder:/workspaces \ | ||
-e [email protected]:path/to/private/repo.git \ | ||
-e ENVBUILDER_INIT_SCRIPT=bash \ | ||
-e ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64=$(base64 < ~/.ssh/id_ed25519) \ | ||
ghcr.io/coder/envbuilder | ||
``` | ||
|
||
1. Agent-based authentication: set `SSH_AUTH_SOCK` and mount in your agent socket, for example: | ||
|
||
```bash | ||
|