From 1fe0ea1a4b5e86dbaeb1ad11a20b3b5bf155b36c Mon Sep 17 00:00:00 2001 From: "khalid@traclabs.com" Date: Sun, 24 May 2026 09:51:02 -0500 Subject: [PATCH] More key troubleshooting --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index d7bbc42..2a2009e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -161,6 +161,12 @@ RUN --mount=type=secret,id=ssh_key \ echo "Derived public key (compare against Gitea's registered deploy key):" && \ ssh-keygen -y -f /tmp/ssh_key 2>&1 || echo " (failed to derive public key)" && \ echo "=== end diagnostic ===" && \ + echo "" && \ + echo "=== git ls-remote probe (mirrors local working command) ===" && \ + GIT_SSH_COMMAND="ssh -vv -i /tmp/ssh_key -o IdentitiesOnly=yes -o UserKnownHostsFile=/root/.ssh/known_hosts" \ + git ls-remote ssh://git@git.kadil.dev/khalidadil/goods-editor-module.git 2>&1 | head -120 || echo "(ls-remote probe failed, continuing to npm install for completeness)" && \ + echo "=== end ls-remote probe ===" && \ + echo "" && \ GIT_SSH_COMMAND="ssh -i /tmp/ssh_key -o IdentitiesOnly=yes -o UserKnownHostsFile=/root/.ssh/known_hosts" \ npm install && \ rm -f /tmp/ssh_key