Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d6daed62b8 | |||
| 0548f54168 | |||
| 3fe8de2e32 | |||
| f40dae5a03 |
+13
-4
@@ -25,10 +25,19 @@ jobs:
|
||||
- name: Add Gitea SSH Host Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
ssh-keyscan -p 22 172.18.0.2 >> ~/.ssh/known_hosts || true
|
||||
# Direct IP routing avoids dns completely
|
||||
printf "Host gitea\n HostName 172.18.0.2\n Port 22\n StrictHostKeyChecking no\n" > ~/.ssh/config
|
||||
printf "Host thunderobot\n HostName 172.18.0.2\n Port 22\n StrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||
ssh-keyscan -p 22 gitea >> ~/.ssh/known_hosts || true
|
||||
# Route all possible hostnames Gitea might hand out via API back to the internal docker port 22
|
||||
printf "Host gitea\n HostName gitea\n Port 22\n StrictHostKeyChecking no\n" > ~/.ssh/config
|
||||
printf "Host thunderobot\n HostName gitea\n Port 22\n StrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||
printf "Host thunderobot.tail5d6e8e.ts.net\n HostName gitea\n Port 22\n StrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||
|
||||
# Force checkout to rewrite port 222 down to 22
|
||||
git config --global url."ssh://git@gitea/".insteadOf "ssh://git@gitea:222/"
|
||||
git config --global url."ssh://git@gitea/".insteadOf "git@gitea:222:"
|
||||
git config --global url."ssh://git@thunderobot.tail5d6e8e.ts.net/".insteadOf "ssh://git@thunderobot.tail5d6e8e.ts.net:222/"
|
||||
git config --global url."ssh://git@thunderobot.tail5d6e8e.ts.net/".insteadOf "git@thunderobot.tail5d6e8e.ts.net:222:"
|
||||
git config --global url."ssh://git@thunderobot/".insteadOf "ssh://git@thunderobot:222/"
|
||||
git config --global url."ssh://git@thunderobot/".insteadOf "git@thunderobot:222:"
|
||||
chmod 600 ~/.ssh/config
|
||||
|
||||
- name: Checkout Code
|
||||
|
||||
Reference in New Issue
Block a user