Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d6daed62b8 | |||
| 0548f54168 | |||
| 3fe8de2e32 | |||
| f40dae5a03 | |||
| ab3ffbbec8 | |||
| da5c319a5b |
+15
-5
@@ -20,15 +20,25 @@ jobs:
|
||||
ssh-private-key: ${{ secrets.TEKTON_SSH_KEY }}
|
||||
|
||||
- name: Install tools
|
||||
run: apt-get update -qq && apt-get install -y -qq docker.io curl unzip
|
||||
|
||||
- name: Connect job container to gitea_default network
|
||||
run: docker network connect gitea_default $(hostname)
|
||||
run: apt-get update -qq && apt-get install -y -qq curl unzip
|
||||
|
||||
- name: Add Gitea SSH Host Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
ssh-keyscan -p 222 thunderobot >> ~/.ssh/known_hosts || true
|
||||
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
|
||||
uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user