From 5e5d0c8ecfb8c14dc7d77b387e0721f7e1d48a8b Mon Sep 17 00:00:00 2001 From: adtpdn Date: Fri, 3 Jul 2026 17:41:56 +0800 Subject: [PATCH] chore(ci): move network connect step before checkout --- .gitea/workflows/ci.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 87922ef..24f8a36 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -19,23 +19,23 @@ jobs: with: ssh-private-key: ${{ secrets.TEKTON_SSH_KEY }} - - name: Add Gitea SSH Host Key - run: | - mkdir -p ~/.ssh - printf "Host 172.18.0.1\n Port 222\n StrictHostKeyChecking no\n" > ~/.ssh/config - chmod 600 ~/.ssh/config - - - name: Checkout Code - run: | - git clone ssh://git@172.18.0.1:222/danchie/tekton.git . - git checkout $TAG_NAME - - 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) + - name: Add Gitea SSH Host Key + run: | + mkdir -p ~/.ssh + ssh-keyscan -p 222 thunderobot >> ~/.ssh/known_hosts || true + + - name: Checkout Code + uses: actions/checkout@v4 + with: + repository: danchie/tekton + ssh-key: ${{ secrets.TEKTON_SSH_KEY }} + - name: Setup Godot (Cached) run: | apt-get install -y zip