diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml deleted file mode 100644 index 45dd97a..0000000 --- a/.github/dependabot.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: daily - time: "06:00" diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..88ed8a5 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,79 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "rebaseWhen": "behind-base-branch", + "dependencyDashboard": true, + "labels": ["dependencies", "no-stale"], + "commitMessagePrefix": "⬆️", + "commitMessageTopic": "{{depName}}", + "regexManagers": [ + { + "fileMatch": ["/Dockerfile$", "/build.yaml$"], + "matchStringsStrategy": "any", + "matchStrings": [ + "ARG BUILD_FROM=(?.*?):(?.*?)\\s+", + "(aarch64|amd64|armhf|armv7|i386):\\s[\"']?(?.*?):(?.*?)[\"']?\\s" + ], + "datasourceTemplate": "docker" + }, + { + "fileMatch": ["/Dockerfile$"], + "matchStringsStrategy": "any", + "matchStrings": [ + "\\s\\s(?[a-z0-9][a-z0-9-_]+)=(?[a-z0-9-_.]+)\\s+" + ], + "versioningTemplate": "loose", + "datasourceTemplate": "repology", + "depNameTemplate": "alpine_3_17/{{package}}" + }, + { + "fileMatch": ["/Dockerfile$"], + "matchStrings": [ + "ARG PYTHON_VERSION=[\"']?(?.+?)[\"']?\\s+" + ], + "datasourceTemplate": "github-tags", + "depNameTemplate": "python/cpython" + }, + { + "fileMatch": ["/Dockerfile$"], + "matchStrings": [ + "ARG PYTHON_SETUPTOOLS_VERSION=[\"']?(?.+?)[\"']?\\s+" + ], + "datasourceTemplate": "pypi", + "depNameTemplate": "setuptools" + }, + { + "fileMatch": ["/Dockerfile$"], + "matchStrings": [ + "ARG PYTHON_PIP_VERSION=[\"']?(?.+?)[\"']?\\s+" + ], + "datasourceTemplate": "pypi", + "depNameTemplate": "pip" + } + ], + "packageRules": [ + { + "matchDatasources": ["repology"], + "automerge": true + }, + { + "groupName": "Add-on base image", + "matchDatasources": ["docker"] + }, + { + "groupName": "Add-on base image", + "matchDatasources": ["docker"], + "matchUpdateTypes": ["minor", "patch"], + "automerge": true + }, + { + "matchDatasources": ["github-tags"], + "matchUpdateTypes": ["patch"], + "automerge": true + }, + { + "matchDatasources": ["pypi"], + "matchUpdateTypes": ["minor", "patch"], + "automerge": true + } + ] +} diff --git a/base/Dockerfile b/base/Dockerfile index 23629b7..ccb7ce7 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -6,15 +6,15 @@ FROM ${BUILD_FROM} ENV \ PATH="/usr/local/bin:$PATH" \ GPG_KEY="CFDCA245B1043CF2A5F97865FFE87404168BD847" \ - PYTHON_VERSION="3.10.7" \ - PYTHON_PIP_VERSION="22.2.2" \ - PYTHON_SETUPTOOLS_VERSION="65.3.0" # Set shell SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Install base system # hadolint ignore=DL3003,SC2155 +ARG PYTHON_VERSION="3.10.7" +ARG PYTHON_PIP_VERSION="22.2.2" +ARG PYTHON_SETUPTOOLS_VERSION="65.3.0" RUN \ apk add --no-cache --virtual .build-dependencies \ bzip2-dev=1.0.8-r1 \