feat: configure dedicated bot SSH key and non-interactive SSH for git operations.
Some checks failed
Deploy to Production / test (push) Failing after 20s
Deploy to Production / build (push) Has been skipped
Deploy to Production / deploy (push) Has been skipped

This commit is contained in:
syntaxbullet
2026-01-30 15:26:07 +01:00
parent dabcb4cab3
commit fee4969910
2 changed files with 6 additions and 3 deletions

View File

@@ -59,8 +59,7 @@ services:
# Project directory - allows git pull and rebuild
- .:/app/deploy
# SSH Keys for git authentication
- ~/.ssh/id_rsa:/home/bun/.ssh/id_rsa:ro
- ~/.ssh/id_ed25519:/home/bun/.ssh/id_ed25519:ro
- ~/.ssh/aurora_bot_key:/home/bun/.ssh/id_ed25519:ro
- ~/.ssh/known_hosts:/home/bun/.ssh/known_hosts:ro
working_dir: /app
environment:

View File

@@ -26,7 +26,11 @@ async function execWithTimeout(
return new Promise((resolve, reject) => {
const child = exec(cmd, {
cwd: options.cwd,
env: { ...process.env, GIT_TERMINAL_PROMPT: "0" }
env: {
...process.env,
GIT_TERMINAL_PROMPT: "0",
GIT_SSH_COMMAND: "ssh -o BatchMode=yes"
}
}, (error: ExecException | null, stdout: string, stderr: string) => {
if (error) {
reject(error);