chore(ci): use HTTP manual clone with Gitea internal Docker network IP, ditch ssh
Release / Build & Release (push) Failing after 2m20s
Release / Build & Release (push) Failing after 2m20s
This commit is contained in:
+5
-22
@@ -22,30 +22,13 @@ jobs:
|
|||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: apt-get update -qq && apt-get install -y -qq curl unzip
|
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 22 172.18.0.2 >> ~/.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 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
|
|
||||||
printf "Host thunderobot.tail5d6e8e.ts.net\n HostName 172.18.0.2\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
|
- name: Checkout Code
|
||||||
run: |
|
run: |
|
||||||
# Use manual clone because actions/checkout overrides SSH settings and drops our Host aliases
|
# Use manual HTTP clone to bypass the complex SSH/Tailscale/Port222 networking completely.
|
||||||
eval "$(ssh-agent -s)"
|
# We use the internal gitea docker network IP and port 3000 directly.
|
||||||
ssh-add <(echo "${{ secrets.TEKTON_SSH_KEY }}")
|
git config --global credential.helper store
|
||||||
git clone ssh://git@gitea/danchie/tekton.git .
|
echo "http://adtpdn:${{ secrets.TEKTON_RELEASE_TOKEN }}@172.18.0.2:3000" > ~/.git-credentials
|
||||||
|
git clone http://172.18.0.2:3000/danchie/tekton.git .
|
||||||
git checkout $TAG_NAME
|
git checkout $TAG_NAME
|
||||||
|
|
||||||
- name: Setup Godot (Cached)
|
- name: Setup Godot (Cached)
|
||||||
|
|||||||
Reference in New Issue
Block a user