Rebase Helm binary
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-06-17 10:51:39 +02:00
parent 7b19a1c3ac
commit 246dfc03e2

View File

@ -1,15 +1,17 @@
# FROM alpine:latest AS download
FROM alpine:latest AS download
# RUN apk --update add --no-cache \
# curl \
# jq && \
# curl -L https://api.github.com/repos/<name>/<name>/releases/latest | \
# jq -r '.assets[] | select(.name | contains("amd64")) | .browser_download_url' | \
# xargs -I {} curl -L -o /tmp/<file> {}
RUN apk --update add --no-cache \
curl \
jq && \
curl -L https://api.github.com/repos/helm/helm/releases/latest | \
jq -r '.tag_name' | \
xargs -I {} curl -L -o /tmp/helm.tar.gz https://get.helm.sh/helm-{}-linux-amd64.tar.gz && \
tar -xzf /tmp/helm.tar.gz --strip-components=1 -C /tmp
FROM debian:11-slim
COPY --from=alpine/helm:latest /usr/bin/helm /usr/bin/helm
#COPY --from=alpine/helm:latest /usr/bin/helm /usr/bin/helm
COPY --from=download /tmp/helm /usr/bin/helm
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en