From 9cee473d1eec752d65c467f75de205e22e49ee9a Mon Sep 17 00:00:00 2001 From: Patrick de Ruiter Date: Sat, 29 Nov 2025 12:08:51 +0100 Subject: [PATCH] feat: Schedule Renovate to run only between 2-4 AM Add schedule configuration to reduce resource usage by limiting Renovate runs to a nightly maintenance window. - schedule: 'after 2am and before 4am' - timezone: Europe/Amsterdam Renovate will now only check for updates during this window instead of running continuously. --- files/config.js.tpl | 5 +++++ variables.tf | 1 + 2 files changed, 6 insertions(+) diff --git a/files/config.js.tpl b/files/config.js.tpl index cc481c5..fc12edf 100644 --- a/files/config.js.tpl +++ b/files/config.js.tpl @@ -25,6 +25,11 @@ module.exports = { // Additional recommended settings for Gitea requireConfig: 'optional', + // Schedule configuration - only run during specified time window + // This reduces resource usage by limiting when Renovate checks for updates + schedule: ['after 2am and before 4am'], + timezone: 'Europe/Amsterdam', + // Regex managers for custom version detection // This enables Renovate to detect Docker image versions in Terraform files // when annotated with: # renovate: datasource=docker diff --git a/variables.tf b/variables.tf index 19e4d63..f7607ba 100644 --- a/variables.tf +++ b/variables.tf @@ -10,6 +10,7 @@ variable "container_name" { variable "renovate_image" { description = "Docker image for Renovate" type = string + # renovate: datasource=docker default = "renovate/renovate:latest" }