Adjust Forgejo checkout URL for host-networked Docker jobs.

Use 127.0.0.1 Forgejo endpoint from job steps so clone and API calls stay local to the NAS host network path.
This commit is contained in:
littlecodedragon 2026-04-27 06:23:46 +02:00
parent 5396ebad7c
commit 2a0caf80ff

View file

@ -25,8 +25,7 @@ jobs:
set -euo pipefail
rm -rf .git
git init .
git config --global http.sslVerify false
git remote add origin "https://copilot:${FORGEJO_TOKEN}@192.168.1.155:3030/${GITHUB_REPOSITORY}.git"
git remote add origin "http://copilot:${FORGEJO_TOKEN}@127.0.0.1:3030/${GITHUB_REPOSITORY}.git"
git fetch --tags --prune --depth=1 origin "${GITHUB_SHA}"
git checkout --force FETCH_HEAD
@ -280,3 +279,4 @@ jobs:
"${release_api}/assets?name=${encoded_name}" \
> /dev/null
done