mirror of
https://github.com/hassio-addons/addon-tasmoadmin.git
synced 2025-05-04 02:51:24 +00:00
Add Renovate for dependency management (#292)
This commit is contained in:
parent
411b5826b1
commit
0963043149
3 changed files with 67 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"
|
65
.github/renovate.json
vendored
Normal file
65
.github/renovate.json
vendored
Normal file
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"$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 TASMOADMIN_VERSION=[\"']?(?<currentValue>.+?)[\"']?\\s+"
|
||||
],
|
||||
"datasourceTemplate": "github-releases",
|
||||
"depNameTemplate": "TasmoAdmin/TasmoAdmin"
|
||||
}
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
"matchDatasources": ["repology"],
|
||||
"automerge": true
|
||||
},
|
||||
{
|
||||
"groupName": "PHP",
|
||||
"matchDatasources": ["repology"],
|
||||
"matchDepPatterns": ["alpine.*/php.*"],
|
||||
"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": ["TasmoAdmin/TasmoAdmin"],
|
||||
"matchUpdateTypes": ["minor", "patch"],
|
||||
"automerge": true
|
||||
}
|
||||
]
|
||||
}
|
|
@ -6,6 +6,7 @@ FROM ${BUILD_FROM}
|
|||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
# Setup base
|
||||
ARG TASMOADMIN_VERSION="v3.0.1"
|
||||
# hadolint ignore=DL3003
|
||||
RUN \
|
||||
apk add --no-cache \
|
||||
|
@ -26,7 +27,7 @@ RUN \
|
|||
nodejs=18.14.2-r0 \
|
||||
npm=9.1.2-r0 \
|
||||
\
|
||||
&& git clone --branch "v3.0.1" --depth=1 \
|
||||
&& git clone --branch "${TASMOADMIN_VERSION}" --depth=1 \
|
||||
"https://github.com/TasmoAdmin/TasmoAdmin.git" /var/www/tasmoadmin \
|
||||
\
|
||||
&& cd /var/www/tasmoadmin/tasmoadmin \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue