Initial Commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-04-27 18:55:07 +02:00
commit 2b7dd6b706
14 changed files with 379 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#
# {{ ansible_managed }}
#
[Unit]
Description=Service to start renovate
Requires=docker.service network-online.target
After=docker.service network-online.target
{% if renovate_systemd_status_email %}
OnFailure=status-email@%n.service
{% endif %}
[Service]
Type=simple
ExecStart=/usr/bin/docker-compose up
WorkingDirectory={{ renovate_dir }}

View File

@ -0,0 +1,15 @@
#
# {{ ansible_managed }}
#
[Unit]
Description=Timer to start renovate periodically
[Timer]
OnCalendar={{ renovate_systemd_timer_oncalendar }}
Persistent=true
RandomizedDelaySec=0
WakeSystem=false
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
#jinja2: lstrip_blocks: "True", trim_blocks: "True"
{
{% for key, value in renovate_config.items() %}
{% if value | bool %}
"{{ key }}": {{ value | lower }},
{% else %}
"{{ key }}": "{{ value }}",
{% endif %}
{% endfor %}
}

View File

@ -0,0 +1,16 @@
#jinja2: lstrip_blocks: "True", trim_blocks: "True"
version: '3'
services:
renovate:
environment:
RENOVATE_CONFIG_FILE: /usr/src/app/config.json
{% for key, value in renovate_container_environment.items() %}
{{ key | upper }}: {{ value | quote }}
{% endfor %}
image: {{ renovate_container_image }}
user: {{ renovate_container_user | default('1000:977') }}
volumes:
- ./config.json:/usr/src/app/config.json
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp:rw