feat: pass private key as env variable SSH_KEY
This commit is contained in:
parent
c84f7ec54f
commit
73f25ab8d2
@ -125,6 +125,7 @@ start_container_if_needed() {
|
||||
--user "$DEV_USER" \
|
||||
--hostname "$WORKSPACE" \
|
||||
--label auto-cleanup=true \
|
||||
-e SSH_KEY="$(cat $HOME/secrets/$WORKSPACE/id_ed25519)" \
|
||||
-v "/mnt/private/workspaces-data/public/$WORKSPACE:/app/public" \
|
||||
-v "/mnt/private/workspaces-data/private/$WORKSPACE:/app/private" \
|
||||
-v "$HOME/secrets/$WORKSPACE/gitconfig:/home/$DEV_USER/.gitconfig:ro,Z" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user