fix: configure SSH to use port 222 for Gitea and improve entrypoint resilience
This commit is contained in:
1 parent
0e601a254e
commit
000e7b5104
1 file changed
+2
-2
@@ -9,10 +9,10 @@ cp /root/.ssh/known_hosts /tmp/known_hosts 2>/dev/null || touch /tmp/known_hosts
|
|||||||
chmod 600 /tmp/known_hosts
|
chmod 600 /tmp/known_hosts
|
||||||
|
|
||||||
# Add Gitea to known_hosts
|
# Add Gitea to known_hosts
|
||||||
ssh-keyscan -H git.processhub.work >> /tmp/known_hosts 2>/dev/null || true
|
ssh-keyscan -H -p 222 git.processhub.work >> /tmp/known_hosts 2>/dev/null || true
|
||||||
|
|
||||||
# Configure SSH
|
# Configure SSH
|
||||||
export GIT_SSH_COMMAND="ssh -i /root/.ssh/id_ed25519 -o UserKnownHostsFile=/tmp/known_hosts -o StrictHostKeyChecking=accept-new"
|
export GIT_SSH_COMMAND="ssh -p 222 -i /root/.ssh/id_ed25519 -o UserKnownHostsFile=/tmp/known_hosts -o StrictHostKeyChecking=accept-new"
|
||||||
|
|
||||||
# Git config
|
# Git config
|
||||||
git config --global user.email "[email protected]"
|
git config --global user.email "[email protected]"
|
||||||
|
|||||||
Reference in new issue
Block a user