mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-04 19:01:21 +00:00
Add Renovate for dependency management (#186)
This commit is contained in:
parent
668400f646
commit
e46751d613
3 changed files with 61 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"
|
|
59
.github/renovate.json
vendored
Normal file
59
.github/renovate.json
vendored
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
{
|
||||||
|
"$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 HOME_PANEL_VERSION=[\"']?(?<currentValue>.+?)[\"']?\\s+"
|
||||||
|
],
|
||||||
|
"datasourceTemplate": "github-releases",
|
||||||
|
"depNameTemplate": "timmo001/home-panel"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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": ["timmo001/home-panel"],
|
||||||
|
"matchUpdateTypes": ["minor", "patch"],
|
||||||
|
"automerge": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -9,6 +9,7 @@ COPY rootfs /
|
||||||
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
|
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
|
ARG HOME_PANEL_VERSION="v2.11.6"
|
||||||
# hadolint ignore=DL3003
|
# hadolint ignore=DL3003
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache --virtual .build-dependencies \
|
apk add --no-cache --virtual .build-dependencies \
|
||||||
|
@ -21,7 +22,7 @@ RUN \
|
||||||
yarn=1.22.19-r0 \
|
yarn=1.22.19-r0 \
|
||||||
\
|
\
|
||||||
&& mkdir -p /opt/panel \
|
&& mkdir -p /opt/panel \
|
||||||
&& curl -L -s "https://github.com/timmo001/home-panel/releases/download/v2.11.6/home-panel.tar.gz" \
|
&& curl -L -s "https://github.com/timmo001/home-panel/releases/download/${HOME_PANEL_VERSION}/home-panel.tar.gz" \
|
||||||
| tar zxvf - -C /opt/panel \
|
| tar zxvf - -C /opt/panel \
|
||||||
\
|
\
|
||||||
&& cd /opt/panel \
|
&& cd /opt/panel \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue