mirror of
https://github.com/hassio-addons/addon-thelounge.git
synced 2025-05-05 19:41:23 +00:00
Add Renovate for dependency management (#132)
This commit is contained in:
parent
61338900c6
commit
4642069363
3 changed files with 75 additions and 9 deletions
8
.github/dependabot.yaml
vendored
8
.github/dependabot.yaml
vendored
|
@ -1,8 +0,0 @@
|
||||||
---
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: "github-actions"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: daily
|
|
||||||
time: "06:00"
|
|
73
.github/renovate.json
vendored
Normal file
73
.github/renovate.json
vendored
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
{
|
||||||
|
"$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 THE_LOUNGE_VERSION=[\"']?(?<currentValue>.+?)[\"']?\\s+"
|
||||||
|
],
|
||||||
|
"datasourceTemplate": "github-releases",
|
||||||
|
"depNameTemplate": "thelounge/thelounge"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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-releases"],
|
||||||
|
"matchDepNames": ["thelounge/thelounge"],
|
||||||
|
"matchUpdateTypes": ["minor", "patch"],
|
||||||
|
"automerge": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchManagers": ["pip_requirements"],
|
||||||
|
"addLabels": ["python"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchManagers": ["pip_requirements"],
|
||||||
|
"matchDepTypes": ["dev"],
|
||||||
|
"rangeStrategy": "pin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchManagers": ["pip_requirements"],
|
||||||
|
"matchUpdateTypes": ["minor", "patch"],
|
||||||
|
"automerge": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -3,6 +3,7 @@ ARG BUILD_FROM=ghcr.io/hassio-addons/base:13.1.1
|
||||||
FROM ${BUILD_FROM}
|
FROM ${BUILD_FROM}
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
|
ARG THE_LOUNGE_VERSION="v4.3.1"
|
||||||
# hadolint ignore=DL3003
|
# hadolint ignore=DL3003
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache --virtual .build-dependencies \
|
apk add --no-cache --virtual .build-dependencies \
|
||||||
|
@ -19,7 +20,7 @@ RUN \
|
||||||
\
|
\
|
||||||
&& yarn global add \
|
&& yarn global add \
|
||||||
modclean@3.0.0-beta.1 \
|
modclean@3.0.0-beta.1 \
|
||||||
thelounge@4.3.1 \
|
"thelounge@${THE_LOUNGE_VERSION#v}" \
|
||||||
\
|
\
|
||||||
&& modclean \
|
&& modclean \
|
||||||
--path /usr/local/share/.config/yarn/global \
|
--path /usr/local/share/.config/yarn/global \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue