replace .Release.Version with .Release.VersionID to fix #65

Signed-off-by: Lei Wang <ssst0n3@gmail.com>
This commit is contained in:
Lei Wang
2025-04-10 11:12:58 +02:00
committed by Adphi
parent a0039dbae7
commit 85b144fe63
+1 -1
View File
@@ -2,7 +2,7 @@ FROM {{ .Image }}
USER root
{{ $version := atoi .Release.Version }}
{{ $version := atoi .Release.VersionID }}
{{ if le $version 8 }}
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \