fix: refactor: remove entrypoint.sh PROJECT_REPO_ROOT workaround (#503)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

This commit is contained in:
Agent 2026-04-09 12:11:28 +00:00
parent 18a3d19d51
commit cfb4ba5fb3

View file

@ -135,13 +135,6 @@ POLL_INTERVAL="${POLL_INTERVAL:-300}"
log "Entering polling loop (interval: ${POLL_INTERVAL}s, roles: ${AGENT_ROLES})"
# Override PROJECT_REPO_ROOT for container environment
# Host TOMLs may have paths like /home/johba/harb but container uses /home/agent/repos/harb
if [ "${DISINTO_CONTAINER:-}" = "1" ] && [ -n "${PROJECT_NAME:-}" ]; then
export PROJECT_REPO_ROOT="/home/agent/repos/${PROJECT_NAME}"
log "Overriding PROJECT_REPO_ROOT to ${PROJECT_REPO_ROOT} for container"
fi
# Main polling loop using iteration counter for gardener scheduling
iteration=0
while true; do