diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2e9c766..57bb590 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -21,10 +21,8 @@ jobs: steps: - name: Checkout repository run: | - # Runner DNS overrides bypass Docker's embedded DNS; add gitea to hosts - grep -q gitea /etc/hosts || echo "172.21.0.4 gitea" >> /etc/hosts if [ ! -d .git ]; then - git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" . + git clone --depth=1 "http://host.docker.internal:3300/${GITHUB_REPOSITORY}.git" . fi - name: Setup Python @@ -109,9 +107,8 @@ jobs: steps: - name: Checkout repository run: | - grep -q gitea /etc/hosts || echo "172.21.0.4 gitea" >> /etc/hosts if [ ! -d .git ]; then - git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" . + git clone --depth=1 "http://host.docker.internal:3300/${GITHUB_REPOSITORY}.git" . fi - name: Setup Node.js @@ -188,9 +185,8 @@ jobs: steps: - name: Checkout repository run: | - grep -q gitea /etc/hosts || echo "172.21.0.4 gitea" >> /etc/hosts if [ ! -d .git ]; then - git clone --depth=1 "http://gitea:3000/${GITHUB_REPOSITORY}.git" . + git clone --depth=1 "http://host.docker.internal:3300/${GITHUB_REPOSITORY}.git" . fi - name: Warm mirror cache for base images