-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrenovate.yml
118 lines (102 loc) · 5.12 KB
/
renovate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
- hosts: homelab
vars:
application: renovate
docker_network: "{{ networks.pub }}"
handlers:
- name: Restart
community.docker.docker_container:
name: "{{ application }}"
restart: true
comparisons:
'*': ignore
tasks:
- name: Create config folder
ansible.builtin.file:
path: "{{ config_directory }}"
state: directory
owner: 12021
group: "{{ common_group_id }}"
mode: "0751"
recurse: true
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: ghcr.io/renovatebot/renovate:39
entrypoint:
- /bin/bash
- -c
- renovate --version > /tmp/renovate.log && /bin/tail -f /tmp/renovate.log
volumes:
- "{{ config_directory }}:/base"
labels:
'{
"chadburn.enabled": "true",
"chadburn.job-exec.{{ application }}-cron.schedule": "0 17 * * *",
"chadburn.job-exec.{{ application }}-cron.command": "/usr/local/sbin/renovate-entrypoint.sh renovate",
"chadburn.job-exec.{{ application }}-cron.user": "12021",
"chadburn.job-exec.{{ application }}-cron.tty": "true",
"chadburn.job-exec.{{ application }}-cron.no-overlap": "true"
}'
env:
RENOVATE_BASE_DIR: "/base"
RENOVATE_PLATFORM: "gitea"
RENOVATE_ENDPOINT: "https://gitea.{{ common_tld }}"
# it's own bot account
RENOVATE_USERNAME: "renovate"
RENOVATE_TOKEN: !vault |
$ANSIBLE_VAULT;1.1;AES256
39363761636636646234636139316134356538363864326130356664613062383939323962363133
3563653133373962626362303433396431666566363066370a356539346336613165363265633862
37316266616639666665616332303630373461613165336336323466616337396563353533663138
3534643035656462640a663364326132386634303763373364313334663130653562333439613866
30313037326362636437366363313466643166626164396262336164386535326134313137613337
3836366663323965303262363865666139356437646361376262
RENOVATE_AUTODISCOVER: "true"
RENOVATE_GIT_AUTHOR: 'Renovate Bot <[email protected]>'
# for release notes
GITHUB_COM_TOKEN: &github_token !vault |
$ANSIBLE_VAULT;1.1;AES256
64633362666138313139333061373933653730333130636164663634653839323738363366363130
3735373064333264336561323133613230346238616664300a396265336131303935626537643735
30373963383939663932313039333561393138326635333565653033346364326237363134623035
3032336539333334330a343162303163343463326461326338396533333436353334653637343961
31393565656636386364363861303262343335346630313865353962396230356264646430303534
6262366561396361316235373362636363666536626538656231
# create hostRules config using env vars
# https://github.com/renovatebot/renovate/blob/08e6203217c69a468c17fd86b48291c3d58b1e62/lib/workers/global/config/parse/host-rules-from-env.ts#L11
RENOVATE_DETECT_HOST_RULES_FROM_ENV: "true"
# ghcr.io
DOCKER_GHCR_IO_USERNAME: &github_username "calvinbui"
DOCKER_GHCR_IO_PASSWORD: *github_token
# lscr.io
DOCKER_LSCR_IO_USERNAME: *github_username
DOCKER_LSCR_IO_PASSWORD: *github_token
# nvcr.io
DOCKER_NVCR_IO_USERNAME: "$oauthtoken"
DOCKER_NVCR_IO_PASSWORD: !vault |
$ANSIBLE_VAULT;1.1;AES256
62653633356331343039303737356535626539653332346566326563633736653063363232626438
3632326566363231373136383534343534613066343662650a643936313932656466333264303935
35316430383235626266333065636265353164663964343335333331663733396131393431326139
3265643963303462620a323563326334333032333965373839366166303331376134666332643237
39326662346464613762346266326334666537313331386262323233393939326539633966326538
39623466376264346536343830653536646638336365383633373032366462306365303231383365
63393936353238303535653439383233346266623135363839623136656636613263323335363933
33353136643564393661356137623339646634643436396438306635376666306131343062316531
6333
# increase DockerHub rate limits
# https://docs.renovatebot.com/docker/#dockerhub
# https://hub.docker.com/settings/security
DOCKER_USERNAME: "calvinbui"
DOCKER_PASSWORD: !vault |
$ANSIBLE_VAULT;1.1;AES256
62366338363433336333646263396430646235643136633361366335323035383736313866303434
3665343462656134623233386266656465386232373138310a306366316163623563303939343233
30623735623436636662323536353938623737316662333862643330646161373766616536666436
6234346634323535610a343331626132643063666631303435303734356638323731313764393536
31366436383734343838313231336334636165643333623464383265353336326264626530393230
6461316338386437323364323936393230333563646638666331
LOG_LEVEL: debug
LOG_FILE: /tmp/renovate.log