chore(opencode-sandbox): fix SSH key permissions and remove read-only flag
This commit is contained in:
@@ -12,7 +12,7 @@ services:
|
|||||||
# Your monorepo — opencode's working directory
|
# Your monorepo — opencode's working directory
|
||||||
- /home/ga/workspace:/workspace
|
- /home/ga/workspace:/workspace
|
||||||
# SSH key for Gitea auth
|
# 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
|
- ~/.ssh/known_hosts:/root/.ssh/known_hosts:ro
|
||||||
# Persist opencode auth so you don't re-login every time
|
# Persist opencode auth so you don't re-login every time
|
||||||
- opencode-auth:/root/.local/share/opencode
|
- opencode-auth:/root/.local/share/opencode
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
chmod 600 /root/.ssh/id_ed25519
|
||||||
export GIT_SSH_COMMAND="ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=accept-new"
|
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.email "gabriel.pereira@protonmail.com"
|
||||||
git config --global user.name "gabspereira"
|
git config --global user.name "gabspereira"
|
||||||
|
|||||||
Reference in New Issue
Block a user