feat: pass private key as env variable SSH_KEY

This commit is contained in:
Pallav Vasa 2025-05-23 12:22:25 +00:00
parent c84f7ec54f
commit 73f25ab8d2

View File

@ -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" \