Skip to content

Commit

Permalink
Add Renovate for dependency management (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Mar 25, 2023
1 parent 4938015 commit 349c8b4
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .github/dependabot.yaml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"$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=(?<depName>.*?):(?<currentValue>.*?)\\s+",
"(aarch64|amd64|armhf|armv7|i386):\\s[\"']?(?<depName>.*?):(?<currentValue>.*?)[\"']?\\s"
],
"datasourceTemplate": "docker"
},
{
"fileMatch": ["/Dockerfile$"],
"matchStringsStrategy": "any",
"matchStrings": [
"\\s\\s(?<package>[a-z0-9][a-z0-9-_]+)=(?<currentValue>[a-z0-9-_.]+)\\s+"
],
"versioningTemplate": "loose",
"datasourceTemplate": "repology",
"depNameTemplate": "alpine_3_17/{{package}}"
},
{
"fileMatch": ["/Dockerfile$"],
"matchStrings": [
"ARG LIBRESPOT_VERSION=[\"']?(?<currentValue>.+?)[\"']?\\s+"
],
"datasourceTemplate": "crate",
"depNameTemplate": "librespot"
}
],
"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": ["crate"],
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
}
]
}
3 changes: 2 additions & 1 deletion spotify/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ FROM ${BUILD_FROM}
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Setup base
ARG LIBRESPOT_VERSION="0.4.2"
# hadolint ignore=DL3003
RUN \
apk add --no-cache --virtual .build-dependencies \
Expand All @@ -24,7 +25,7 @@ RUN \
--features pulseaudio-backend \
--root /usr \
--bin librespot \
--version 0.4.2 \
--version "${LIBRESPOT_VERSION}" \
--verbose \
-- librespot \
\
Expand Down

0 comments on commit 349c8b4

Please sign in to comment.