8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebe6ddc commit d045c1cCopy full SHA for d045c1c
docs/git-auth.md
@@ -49,6 +49,18 @@ envbuilder will assume SSH authentication. You have the following options:
49
ghcr.io/coder/envbuilder
50
```
51
52
+ Alternatively, you can set `ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64` to the
53
+ base64-encoded content of your private key. Example:
54
+
55
+ ```bash
56
+ docker run -it --rm \
57
+ -v /tmp/envbuilder:/workspaces \
58
+ -e ENVBUILDER_GIT_URL=git@example.com:path/to/private/repo.git \
59
+ -e ENVBUILDER_INIT_SCRIPT=bash \
60
+ -e ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64=$(base64 < ~/.ssh/id_ed25519) \
61
+ ghcr.io/coder/envbuilder
62
+ ```
63
64
1. Agent-based authentication: set `SSH_AUTH_SOCK` and mount in your agent socket, for example:
65
66
```bash
0 commit comments