Refactor Dockerfile ARG declarations for better organization and add renovate configuration for automated dependency updates
Some checks failed
Build k8s-mgmt-pod image / Build & Push (push) Failing after 1m40s

This commit is contained in:
Michael Trip 2026-06-24 12:42:34 +02:00
parent f0e72c69a0
commit 60c4ed3c02
2 changed files with 27 additions and 5 deletions

View file

@ -3,8 +3,19 @@ FROM ${NODE_IMAGE} AS webssh2-builder
ENV DEBIAN_FRONTEND=noninteractive
# renovate: datasource=github-releases depName=janosmiko/lfk
ARG LFK_VERSION=0.14.9
# renovate: datasource=github-releases depName=kubernetes/kubectl
ARG KUBECTL_VERSION=1.31.0
# renovate: datasource=github-releases depName=helm/helm
ARG HELM_VERSION=3.16.2
# renovate: datasource=github-releases depName=derailed/k9s
ARG K9S_VERSION=0.40.10
# renovate: datasource=github-releases depName=billchurch/webssh2
ARG WEBSSH2_VERSION=5.0.1
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl \
&& rm -rf /var/lib/apt/lists/* \
@ -21,11 +32,6 @@ RUN apt-get update \
FROM debian:trixie-slim
ARG LFK_VERSION=0.14.9
ARG KUBECTL_VERSION=1.31.0
ARG HELM_VERSION=3.16.2
ARG K9S_VERSION=0.40.10
ARG WEBSSH2_VERSION=5.0.1
ENV DEBIAN_FRONTEND=noninteractive \
WEB_SSH_PORT=3000 \

16
renovate.json Normal file
View file

@ -0,0 +1,16 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": ["/^Dockerfile$/", "/Dockerfile.*/"],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+ARG .*?_VERSION=(?<currentValue>.*)\\s"
],
"datasourceTemplate": "{{{datasource}}}"
}
]
}