Compare commits

1 Commits
main ... dev

Author SHA1 Message Date
96f047d030 feat: add helmfile
All checks were successful
Docker Image CI / build (push) Successful in 24s
2025-11-06 16:47:22 +08:00

View File

@@ -1,8 +1,19 @@
FROM docker.io/alpine/k8s:1.30.4
FROM harbor.merlin.xin/mirrors/docker.io/alpine/k8s:1.30.4
ENV TZ=Asia/Shanghai \
LANG=C.UTF-8
RUN apk add --no-cache nodejs git
RUN apk add --no-cache nodejs git curl ca-certificates tar\
&& update-ca-certificates || true
# Install helmfile (adjust version as needed)
RUN set -eux; \
curl -fsSL -o /tmp/helmfile.tar.gz "https://github.com/helmfile/helmfile/releases/download/v1.1.9/helmfile_1.1.9_linux_amd64.tar.gz"; \
mkdir -p /tmp/helmfile_extract; \
tar -xzf /tmp/helmfile.tar.gz -C /tmp/helmfile_extract; \
# find the helmfile binary and move it to /usr/local/bin
find /tmp/helmfile_extract -type f -name helmfile -exec mv {} /usr/local/bin/helmfile \; ; \
chmod +x /usr/local/bin/helmfile; \
rm -rf /tmp/helmfile.tar.gz /tmp/helmfile_extract
WORKDIR /workspace