diff --git a/renovate.json b/renovate.json index a1ce67d..11d8cd1 100644 --- a/renovate.json +++ b/renovate.json @@ -1,48 +1,89 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:base" + "config:recommended" ], - "regexManagers": [ + "customManagers": [ { + "customType": "regex", "fileMatch": ["r-minimal/Dockerfile"], "matchStrings": ["ARG R_VERSION=\"(?.*?)\""], "depNameTemplate": "rocker-org/rocker-versioned2", "datasourceTemplate": "github-releases", - "extractVersionTemplate": "^R(?.*)$" + "extractVersionTemplate": "^R(?.*?)$" }, { - "fileMatch": [".github/workflows/main-workflow-template.yml"], - "matchStrings": ["r_version_1: (?.*?)"], + "customType": "regex", + "fileMatch": [".github/workflows/main-workflow.yml"], + "matchStrings": ["(^| )r_version_1: *(?[^\\s]*)"], "depNameTemplate": "rocker-org/rocker-versioned2", "datasourceTemplate": "github-releases", - "extractVersionTemplate": "^R(?.*)$" + "extractVersionTemplate": "^R(?.*?)$" }, { + "customType": "regex", + "fileMatch": [".github/workflows/main-workflow.yml"], + "matchStrings": ["(^| )r_version_2: *(?[^\\s]*)"], + "depNameTemplate": "rocker-org/rocker-versioned2", + "datasourceTemplate": "github-releases", + "extractVersionTemplate": "^R(?.*?)$" + }, + { + "customType": "regex", "fileMatch": ["python-minimal/Dockerfile"], "matchStrings": ["ARG PYTHON_VERSION=\"(?.*?)\""], "depNameTemplate": "conda-forge/python", "datasourceTemplate": "conda" }, { - "fileMatch": [".github/workflows/main-workflow-template.yml"], - "matchStrings": ["python_version_1: (?.*?)"], + "customType": "regex", + "fileMatch": [".github/workflows/main-workflow.yml"], + "matchStrings": ["(^| )python_version_1: *(?[^\\s]*)"], "depNameTemplate": "conda-forge/python", "datasourceTemplate": "conda" }, { - "fileMatch": ["spark/Dockerfile"], + "customType": "regex", + "fileMatch": [".github/workflows/main-workflow.yml"], + "matchStrings": ["(^| )python_version_2: *(?[^\\s]*)"], + "depNameTemplate": "conda-forge/python", + "datasourceTemplate": "conda" + }, + { + "customType": "regex", + "fileMatch": ["spark/Dockerfile$"], "matchStrings": ["ARG SPARK_VERSION=\"(?.*?)\""], "depNameTemplate": "apache/spark", - "datasourceTemplate": "github-releases", - "extractVersionTemplate": "^v(?.*)$" + "datasourceTemplate": "github-tags", + "extractVersionTemplate": "^v(?[^\\s]*)" }, { - "fileMatch": [".github/workflows/main-workflow-template.yml"], - "matchStrings": ["spark_version: (?.*?)"], + "customType": "regex", + "fileMatch": [".github/workflows/main-workflow.yml"], + "matchStrings": ["(^| )spark_version: *(?[^\\s]*)"], "depNameTemplate": "apache/spark", - "datasourceTemplate": "github-releases", - "extractVersionTemplate": "^v(?.*)$" + "datasourceTemplate": "github-tags", + "extractVersionTemplate": "v(?[^\\s]*)" + } + ], + "packageRules": [ + { + "matchManagers": ["regex"], + "matchJsonata": ["$contains(replaceString, '_version_2')"], + "matchUpdateTypes": ["major", "minor"], + "enabled": false + }, + { + "matchManagers": ["regex"], + "matchJsonata": ["$contains(replaceString, 'python_version_2')"], + "separateMinorPatch": true, + "groupName": "Python backup version update" + }, + { + "matchManagers": ["regex"], + "matchJsonata": ["$contains(replaceString, 'r_version_2')"], + "separateMinorPatch": true, + "groupName": "R backup version update" } ] } diff --git a/spark/Dockerfile b/spark/Dockerfile index 0d095be..1b47af0 100644 --- a/spark/Dockerfile +++ b/spark/Dockerfile @@ -28,7 +28,7 @@ RUN --mount=type=secret,id=github_token \ apt-get update && \ # Install JDK /opt/install-java.sh && \ - # Install Spark/Hadoop/Hive + # Install Spark/Hadoop/Hive /opt/install-spark-hadoop-hive.sh && \ # Put Spark config in the right place cp /opt/spark-env.sh $SPARK_HOME/conf && \