Skip to content

Commit

Permalink
Add docker ARG version detection for renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
Joker9944 committed Aug 15, 2024
1 parent b9cb7da commit ea4863f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":dependencyDashboard"
":dependencyDashboard",
"schedule:weekends"
],
"major": {
"dependencyDashboardApproval": true
Expand Down Expand Up @@ -31,11 +32,18 @@
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s+[\\w-]+: (?<currentValue>.+?)(?:\\s|$)"
]
},
{
"customType": "regex",
"description": "Update versions in Dockerfile ENV statements marked by comment",
"fileMatch": [
"(?:^|/)Dockerfile$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?)(?: depName=(?<depName>.+?))? packageName=(?<packageName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\sARG [\\w_]+=(?<currentValue>.+?)(?:\\s|$)"
]
}
],
"schedule": [
"every weekend"
],
"assignees": [
"Joker9944"
],
Expand Down
6 changes: 6 additions & 0 deletions images/traefik/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,32 @@ FROM python:3.12.5@sha256:e3d5b6f95ce66923b5e48a06ee5755abb097de96a8617c3f2f7d43

ARG PLUGIN_THEME_PARK_METHOD=https
ARG PLUGIN_THEME_PARK_REPO=github.com/packruler/traefik-themepark
# renovate: datasource=github-tags depName=themepark-plugin packageName=packruler/traefik-themepark versioning=semver-coerced
ARG PLUGIN_THEME_PARK_VERSION=v1.4.0

ARG PLUGIN_GEOBLOCK_METHOD=https
ARG PLUGIN_GEOBLOCK_REPO=github.com/PascalMinder/geoblock
# renovate: datasource=github-tags depName=geoblock-plugin packageName=PascalMinder/geoblock versioning=semver-coerced
ARG PLUGIN_GEOBLOCK_VERSION=v0.2.8

ARG PLUGIN_REALIP_METHOD=https
ARG PLUGIN_REALIP_REPO=github.com/jramsgz/traefik-real-ip
# renovate: datasource=github-tags depName=real-ip-plugin packageName=jramsgz/traefik-real-ip versioning=semver-coerced
ARG PLUGIN_REALIP_VERSION=v1.0.6

ARG PLUGIN_MODSECURITY_METHOD=https
ARG PLUGIN_MODSECURITY_REPO=github.com/acouvreur/traefik-modsecurity-plugin
# renovate: datasource=github-tags depName=modsecurity-plugin packageName=acouvreur/traefik-modsecurity-plugin versioning=semver-coerced
ARG PLUGIN_MODSECURITY_VERSION=v1.3.0

ARG PLUGIN_CROWDSEC_BOUNCER_METHOD=https
ARG PLUGIN_CROWDSEC_BOUNCER_REPO=github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin
# renovate: datasource=github-tags depName=crowdsec-bouncer-plugin packageName=maxlerebourg/crowdsec-bouncer-traefik-plugin versioning=semver-coerced
ARG PLUGIN_CROWDSEC_BOUNCER_VERSION=v1.3.0

ARG PLUGIN_REWRITERESPONSEHEADERS_METHOD=https
ARG PLUGIN_REWRITERESPONSEHEADERS_REPO=github.com/XciD/traefik-plugin-rewrite-headers
# renovate: datasource=github-tags depName=rewrite-headers-plugin packageName=XciD/traefik-plugin-rewrite-headers versioning=semver-coerced
ARG PLUGIN_REWRITERESPONSEHEADERS_VERSION=v0.0.4

COPY requirements.txt ./
Expand Down

0 comments on commit ea4863f

Please sign in to comment.