// Renovate configuration file // This file is generated by Terraform and uploaded to the container module.exports = { // Platform configuration platform: '${platform}', endpoint: '${endpoint}', // Bot identity gitAuthor: '${git_author}', username: '${username}', // Repository discovery autodiscover: ${autodiscover}, // Onboarding configuration for new repositories onboardingConfig: ${onboarding_config}, // Recommended: Use persistent cache directory cacheDir: '/tmp/renovate/cache', // Logging logContext: 'renovate-bot', // 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 // Cron format: minute hour day-of-month month day-of-week schedule: ['* 2-3 * * *'], // 2:00 AM to 3:59 AM 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 regexManagers: [ { // Match Docker image versions in Terraform files (.tf and .tfvars) // Requires annotation comment above the image line // Example: // # renovate: datasource=docker // image = "nginx:1.25.0" fileMatch: ['\\.tf$', '\\.tfvars$'], matchStrings: [ '#\\s*renovate:\\s*datasource=docker\\s*\\n\\s*image\\s*=\\s*"(?[^:"]+):(?[^"]+)"' ], datasourceTemplate: 'docker' }, { // Match Docker image versions with explicit versioning scheme // Example: // # renovate: datasource=docker versioning=semver // image = "hashicorp/vault:1.17.3" fileMatch: ['\\.tf$', '\\.tfvars$'], matchStrings: [ '#\\s*renovate:\\s*datasource=docker\\s+versioning=(?\\S+)\\s*\\n\\s*image\\s*=\\s*"(?[^:"]+):(?[^"]+)"' ], datasourceTemplate: 'docker', versioningTemplate: '{{versioning}}' }, { // Match separate image and version/tag variables // Example: // # renovate: datasource=docker depName=redis // version = "8.0.0" fileMatch: ['\\.tf$', '\\.tfvars$'], matchStrings: [ '#\\s*renovate:\\s*datasource=(?\\S+)\\s+depName=(?\\S+)\\s*\\n.*?(?:version|tag)\\s*=\\s*"(?[^"]+)"' ], datasourceTemplate: '{{datasource}}' } ], // Repository-level settings can be overridden in renovate.json files };