CRON-Job vs GitLab-CI reddit / selfhosted ---------------------------------------------------------------------- mfreudenberg · 2023-11-05 12:15 Hi, just wanted to ask your opinion on CRON-Jobs and GitLab-CI. I'd like to setup a GitLab-CI, that basically reassembles a simple CRON-Job. I want to run a curl,that sends a POST to a self-hosted app in my home lab. I was first thinking about the classic way to do it with a CRON- Job. But then i thought, hey why not using a scheduled GitLab-CI for that purpose? In my opinion, there are the following advantages: - History of executed jobs - No need to implement any logging - Secrets like toke can be (more or less) safely handled by GitLab variables? The only drawback would be the one-time setup efford. But that's IMHO neglectable? Do you think, that's a bad idea? What could be othrr drawbacks/disadvantages? Do i have to take into account any storage consideration (for my selfhosted GitLab instance), if i run a job indefinitely? ---------------------------------------------------------------------- gmes78 · 2023-11-05 17:33 Why not use a systemd (oneshot) service + timer? It's nice to work with, it does the logging for you, it lets you start it manually if you want to, etc.