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:
11
ansible/roles/renovate/files/config.js
Normal file
11
ansible/roles/renovate/files/config.js
Normal 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
|
||||
};
|
23
ansible/roles/renovate/files/docker-compose.yml
Normal file
23
ansible/roles/renovate/files/docker-compose.yml
Normal 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
|
11
ansible/roles/renovate/files/entrypoint.sh
Normal file
11
ansible/roles/renovate/files/entrypoint.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
while true;
|
||||
do
|
||||
renovate $@
|
||||
echo "> Sleeping for 1 hour..."
|
||||
sleep 1h &
|
||||
wait $!
|
||||
done
|
Reference in New Issue
Block a user