Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ab3ffbbec8 | |||
| da5c319a5b |
@@ -20,15 +20,16 @@ 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 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
|
||||
chmod 600 ~/.ssh/config
|
||||
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user