More key troubleshooting

This commit is contained in:
khalid@traclabs.com
2026-05-24 09:51:02 -05:00
parent 9d7c9d7a3e
commit 1fe0ea1a4b

View File

@@ -161,6 +161,12 @@ RUN --mount=type=secret,id=ssh_key \
echo "Derived public key (compare against Gitea's registered deploy 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)" && \ ssh-keygen -y -f /tmp/ssh_key 2>&1 || echo " (failed to derive public key)" && \
echo "=== end diagnostic ===" && \ 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" \ GIT_SSH_COMMAND="ssh -i /tmp/ssh_key -o IdentitiesOnly=yes -o UserKnownHostsFile=/root/.ssh/known_hosts" \
npm install && \ npm install && \
rm -f /tmp/ssh_key rm -f /tmp/ssh_key