fix: add FORGE_URL and PROJECT_REPO_ROOT to crontab env template
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/smoke-init Pipeline failed

Cron does not inherit compose env vars. Without these, dev-poll fails
with cd: /home/johba/disinto: No such file or directory (host path
instead of container path).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
johba 2026-03-28 16:30:43 +00:00
parent c1939fbb9a
commit 3ce6354f4f

View file

@ -19,7 +19,9 @@ log() {
# Build crontab from project TOMLs and install for the agent user.
install_project_crons() {
local cron_lines="DISINTO_CONTAINER=1
USER=agent"
USER=agent
FORGE_URL=http://forgejo:3000
PROJECT_REPO_ROOT=/home/agent/repos/${pname}"
for toml in "${DISINTO_DIR}"/projects/*.toml; do
[ -f "$toml" ] || continue
local pname