From 73f25ab8d24962dab50447ac0a50bb6849becac7 Mon Sep 17 00:00:00 2001 From: Pallav Vasa Date: Fri, 23 May 2025 12:22:25 +0000 Subject: [PATCH] feat: pass private key as env variable SSH_KEY --- ssh_router.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh_router.sh b/ssh_router.sh index a1d58ac..ef96d51 100644 --- a/ssh_router.sh +++ b/ssh_router.sh @@ -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" \