Install renovate

It doesn't quite work, as really it needs docker to correctly update packages. But it's a start for now
This commit is contained in:
Jake Howard
2022-01-01 18:23:32 +00:00
parent b81f250d02
commit 78b0161585
8 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
module.exports = {
endpoint: 'https://git.theorangeone.net/api/v4/',
token: '{{ renovate_gitlab_token }}',
platform: 'gitlab',
//dryRun: true,
autodiscover: true,
onboarding: false,
redisUrl: 'redis://redis',
repositoryCache: 'enabled',
persistRepoData: true
};

View File

@@ -0,0 +1,23 @@
version: "2.3"
services:
renovate:
image: renovate/renovate:31-slim
user: "{{ docker_user.id }}"
command: /entrypoint.sh
environment:
- TZ={{ TZ }}
- GITHUB_COM_TOKEN={{ renovate_github_token }}
restart: unless-stopped
depends_on:
- redis
tmpfs:
- /tmp
volumes:
- "{{ app_data_dir }}/renovate/config.js:/usr/src/app/config.js:ro"
- "{{ app_data_dir }}/renovate/entrypoint.sh:/entrypoint.sh:ro"
redis:
image: redis:6-alpine
restart: unless-stopped
volumes:
- /mnt/tank/dbs/redis/renovate:/data

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
while true;
do
renovate $@
echo "> Sleeping for 1 hour..."
sleep 1h &
wait $!
done