Init a first step for this

This commit is contained in:
Luke Murphy 2020-05-05 16:17:17 +02:00
commit 8578c75217
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
6 changed files with 74 additions and 0 deletions

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# renovate
> https://renovate.whitesourcesoftware.com

View File

@ -0,0 +1,13 @@
module.exports = {
endpoint: "https://git.autonomic.zone/api/v1/",
token: "{{ secret "api-token-v1" }}",
platform: "gitea",
logLevel: "info",
onboarding: true,
onboardingConfig: {
extends: ["config:base"],
},
repositories: [
"autonomic-cooperative/gitea",
]
};

View File

@ -0,0 +1,4 @@
---
version: "3.8"
services:

View File

@ -0,0 +1,38 @@
---
version: "3.8"
services:
renovate:
command: renovate
environment:
- RENOVATE_CONFIG_FILE=/etc/config.js
configs:
- source: config-js-prod-v1
target: /etc/config.js
deploy:
mode: replicated
replicas: 0
labels:
- "swarm.cronjob.enable=true"
- "swarm.cronjob.schedule=*/1 * * * *" # testing
# - "swarm.cronjob.schedule=0 8 * * *" # prod setup
- "swarm.cronjob.skip-running=false"
restart_policy:
condition: none
docker-cron-job:
deploy:
placement:
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
configs:
config-js-prod-v1:
file: configs/prod/config.js.tmpl
template_driver: golang
secrets:
api-token-v1:
external: true

15
docker-compose.yml Normal file
View File

@ -0,0 +1,15 @@
---
version: "3.8"
services:
renovate:
image: "renovate:19.230"
docker-cron-job:
image: "crazymax/swarm-cronjob"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- TZ=Europe/Amsterdam
- LOG_LEVEL=info
- LOG_JSON=false

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
docker-compose==1.26.0-rc4