-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanaconda-installers.json
44 lines (44 loc) · 3.1 KB
/
anaconda-installers.json
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
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": [
"Preset to update installer versions for Anaconda Distribution and Miniconda",
"The custom data sources process the .files.json files for each installer and return the latest installer version.",
"See the [documentation](https://github.com/anaconda/renovate-config/blob/main/docs/anaconda-installers.md) for details."
],
"packageRules": [
{
"description": [
"Anaconda Distribution installer.",
"This group will bundle all installer architectures into one PR."
],
"matchDatasources": ["custom.anaconda_installer"],
"groupName": "Anaconda Distribution",
"commitMessageTopic": "Anaconda Distribution",
"separateMajorMinor": false
},
{
"description": [
"Miniconda installer.",
"This group will bundle all installer architectures into one PR."
],
"matchDatasources": ["custom.miniconda_installer"],
"groupName": "Miniconda",
"commitMessageTopic": "Miniconda",
"separateMajorMinor": false
}
],
"customDatasources": {
"miniconda_installer": {
"defaultRegistryUrlTemplate": "https://repo.anaconda.com/miniconda/.files.json",
"transformTemplates": [
"{ \"releases\": [ $map($sift($, function($v, $k) { $not($k.$contains(\"latest\")) and $v.sha256 = $lookup($, \"Miniconda3-latest-{{ packageName }}\").sha256}).$keys(), function($v) { { \"digest\": $lookup($, $v).sha256, \"version\": $contains($v.$split(\"-\")[2], /^[0-9]+$/) ? $v.$split(\"-\")[1] & \"-\" & $v.$split(\"-\")[2] : $v.$split(\"-\")[1], \"changeLogUrl\": \"https://docs.anaconda.com/free/miniconda/miniconda-release-notes/#miniconda-\" & ($contains( $v.$split(\"-\")[2], /^[0-9]+$/) ? $v.$split(\"-\")[1].$split(\"_\")[1] & \"-\" & $v.$split(\"-\")[2] : $v.$split(\"-\")[1].$split(\"_\")[1]).$replace(\".\", \"-\"), \"sourceUrl\": \"https://repo.anaconda.com/miniconda/\" & $v, \"releaseTimestamp\": $fromMillis($lookup($, $v).mtime * 1000, \"[Y0001]-[M01]-[D01]T[H01]:[m01]\", \"-6\") } } ) ], \"sourceUrl\": \"https://repo.anaconda.com/miniconda/\", \"homepage\": \"https://anaconda.com\"}"
]
},
"anaconda_installer": {
"defaultRegistryUrlTemplate": "https://repo.anaconda.com/archive/.files.json",
"transformTemplates": [
"{ \"releases\": $map($sift($, function($v, $k){ $k.$contains(\"{{ packageName }}\") } ).$keys(), function($v) { { \"digest\": $lookup($, $v).sha256, \"version\": $contains($v.$split(\"-\")[2], /^[0-9]+$/) ? $v.$split(\"-\")[1] & \"-\" & $v.$split(\"-\")[2] : $v.$split(\"-\")[1], \"changeLogUrl\": \"https://docs.anaconda.com/free/anaconda/release-notes/#anaconda-\" & ($contains( $v.$split(\"-\")[2], /^[0-9]+$/) ? $v.$split(\"-\")[1] & \"-\" & $v.$split(\"-\")[2] : $v.$split(\"-\")[1]).$replace(\".\", \"-\"), \"sourceUrl\": \"https://repo.anaconda.com/archive/\" & $v, \"releaseTimestamp\": $fromMillis($lookup($, $v).mtime * 1000, \"[Y0001]-[M01]-[D01]T[H01]:[m01]\", \"-6\") } } ), \"sourceUrl\": \"https://repo.anaconda.com/archive/\", \"homepage\": \"https://anaconda.com\" }"
]
}
}
}