helm-docker/Dockerfile

25 lines
793 B
Docker
Raw Normal View History

FROM docker.io/library/golang:1.17.6-alpine AS helm-push-plugin
RUN apk update && \
apk upgrade && \
apk add make git
RUN git clone https://github.com/volker-raschek/helm-push && \
make --directory /go/helm-push build_linux && \
cp /go/helm-push/bin/linux/$(go env GOARCH)/helm-cm-push /go/helm-push/helm-cm-push
2022-01-31 21:02:25 +00:00
FROM docker.io/library/alpine:3.14
2022-01-29 21:14:27 +00:00
ARG HELM_VERSION
COPY install.sh /install.sh
RUN VERSION=${HELM_VERSION} /install.sh
2022-01-31 18:40:11 +00:00
# TODO: Until the following issue is not fixed, it is not possible to install
# cm-push on other target architectures instead of amd64. Use instead the
# precompiled binary.
# https://github.com/chartmuseum/helm-push/issues/128
COPY --from=helm-push-plugin /go/helm-push/helm-cm-push /usr/bin/helm-cm-push
2022-01-29 21:14:27 +00:00
ENTRYPOINT [ "/usr/bin/helm" ]