commit 8578c75217adc03d808f44437063ecae052734ed Author: Luke Murphy Date: Tue May 5 16:17:17 2020 +0200 Init a first step for this diff --git a/README.md b/README.md new file mode 100644 index 0000000..39e769d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# renovate + +> https://renovate.whitesourcesoftware.com diff --git a/configs/prod/config.js.tmpl b/configs/prod/config.js.tmpl new file mode 100644 index 0000000..6603ce9 --- /dev/null +++ b/configs/prod/config.js.tmpl @@ -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", + ] +}; diff --git a/docker-compose.override.yml b/docker-compose.override.yml new file mode 100644 index 0000000..da8e936 --- /dev/null +++ b/docker-compose.override.yml @@ -0,0 +1,4 @@ +--- +version: "3.8" + +services: diff --git a/docker-compose.production.yml b/docker-compose.production.yml new file mode 100644 index 0000000..0cb39bd --- /dev/null +++ b/docker-compose.production.yml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..eb24cdd --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b538b9c --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +docker-compose==1.26.0-rc4