diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f1f52c..604f259 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.5.1 (2026-10-03) + +- docker: the scheduled sync ran twice at once; the crontab was written to `/etc/cron.d`, which dcron reads by itself, and then installed again with `crontab` ([#29](https://github.com/katbyte/ghp-sync/pull/29)) + ## v0.5.0 (2026-09-23) - add `Last Reviewer` PR field, who left the most recent submitted review; refreshed on open PRs too ([#27](https://github.com/katbyte/ghp-sync/pull/27)) diff --git a/docker-compose.yml b/docker-compose.yml index 19162f6..fc16a50 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: "3.6" services: ghp-sync: # published on release; `docker compose pull` picks up a new build of this tag - image: ghcr.io/katbyte/ghp-sync:v0.5.0 + image: ghcr.io/katbyte/ghp-sync:v0.5.1 container_name: ghp-sync environment: - "TZ=America/Vancouver" diff --git a/scripts/entry.sh b/scripts/entry.sh index f433791..f3d3a55 100644 --- a/scripts/entry.sh +++ b/scripts/entry.sh @@ -5,10 +5,10 @@ #copy env env >> /etc/profile -#setup cron -echo "$SYNC_CRON /app/scripts/run.sh 2>&1 | tee -a /var/log/ghp-sync.log" > /etc/cron.d/crontab -chmod 0644 /etc/cron.d/crontab -crontab /etc/cron.d/crontab +#setup cron: the file stays out of /etc/cron.d, which dcron reads on its own - a crontab written +# there and then installed with crontab is registered twice, and every sync runs twice at once +echo "$SYNC_CRON /app/scripts/run.sh 2>&1 | tee -a /var/log/ghp-sync.log" > /app/crontab +crontab /app/crontab touch /var/log/cron.log # start cron