diff --git a/files/renovate.service b/files/renovate.service new file mode 100644 index 0000000..86d9401 --- /dev/null +++ b/files/renovate.service @@ -0,0 +1,19 @@ +[Unit] +Description=Renovate Bot - Automated Dependency Updates +After=docker.service +Requires=docker.service + +[Service] +Type=oneshot +ExecStart=/usr/bin/docker start -a renovate +ExecStop=/usr/bin/docker stop renovate +TimeoutStartSec=0 +TimeoutStopSec=120 + +# Logging +StandardOutput=journal +StandardError=journal +SyslogIdentifier=renovate + +[Install] +WantedBy=multi-user.target diff --git a/files/renovate.timer b/files/renovate.timer new file mode 100644 index 0000000..6665e13 --- /dev/null +++ b/files/renovate.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Renovate Bot Timer - Run daily at 02:00 + +[Timer] +OnCalendar=*-*-* 02:00:00 +Persistent=true +RandomizedDelaySec=1800 + +[Install] +WantedBy=timers.target diff --git a/variables.tf b/variables.tf index 3198ed6..898c9a8 100644 --- a/variables.tf +++ b/variables.tf @@ -17,7 +17,7 @@ variable "renovate_image" { variable "restart_policy" { description = "Restart policy for the container (no, on-failure, always, unless-stopped)" type = string - default = "unless-stopped" + default = "no" } # Resource Limits