chore(opencode-sandbox): fix SSH key permissions and remove read-only flag

This commit is contained in:
2026-04-05 18:55:28 +00:00
parent 32e5eb8906
commit 299de83f2f
2 changed files with 2 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ services:
# Your monorepo — opencode's working directory
- /home/ga/workspace:/workspace
# SSH key for Gitea auth
- ~/.ssh/id_ed25519:/root/.ssh/id_ed25519:ro
- ~/.ssh/id_ed25519:/root/.ssh/id_ed25519
- ~/.ssh/known_hosts:/root/.ssh/known_hosts:ro
# Persist opencode auth so you don't re-login every time
- opencode-auth:/root/.local/share/opencode

View File

@@ -1,4 +1,5 @@
#!/bin/bash
chmod 600 /root/.ssh/id_ed25519
export GIT_SSH_COMMAND="ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=accept-new"
git config --global user.email "gabriel.pereira@protonmail.com"
git config --global user.name "gabspereira"