Init a first step for this
This commit is contained in:
commit
8578c75217
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# renovate
|
||||
|
||||
> https://renovate.whitesourcesoftware.com
|
13
configs/prod/config.js.tmpl
Normal file
13
configs/prod/config.js.tmpl
Normal 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",
|
||||
]
|
||||
};
|
4
docker-compose.override.yml
Normal file
4
docker-compose.override.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
38
docker-compose.production.yml
Normal file
38
docker-compose.production.yml
Normal 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
15
docker-compose.yml
Normal 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
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
docker-compose==1.26.0-rc4
|
Reference in New Issue
Block a user