a519e464823cdbb0d87d80475425c863d33ad9a4
All checks were successful
Docker Image / build (push) Successful in 2m29s
workhive-caldav-sync
Sync Workhive schedule shifts to a CalDAV calendar.
Basic usage
-
Copy
.env.exampleto.envand fill values (do NOT commit.env). -
Run locally with Docker Compose (recommended):
# build and run
docker compose up --build
# or run in background
docker compose up --build -d
# stop
docker compose down
- Or run with Docker directly:
docker build -t workhive-sync:latest .
docker run --rm --env-file .env workhive-sync:latest
Notes
- Secrets are read from environment via
python-dotenvwhen running locally (.env file). - The script expects the website to provide times in the timezone set by
TIMEZONE(default America/New_York). - Events are checked for duplicates by deterministic UID and summary+start match before creation.
Container behavior
- The container runs
sync.pyonce immediately and then repeats every hour. - If you prefer a one-shot run (no loop), change the
CMDin theDockerfiletopython sync.pyor run the image with an override command.
Files of interest:
Description
Languages
Python
90.7%
Dockerfile
5.5%
Shell
3.8%