-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
27 lines (21 loc) · 935 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM plugins/base:linux-amd64
LABEL maintainer="Serebrennikov Stanislav <[email protected]>" \
org.label-schema.name="helm chart push" \
org.label-schema.vendor="Serebrennikov Stanislav" \
org.label-schema.schema-version="1.0"
ENV HELM_VERSION v3.7.2
ENV HELM_PLUGIN_PUSH_VERSION v0.10.1
ENV XDG_CONFIG_DIR=/opt
ENV XDG_DATA_HOME=/opt
ENV XDG_CACHE_HOME=/opt
RUN apk add curl tar bash --no-cache
RUN set -ex \
&& curl -sSL https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar xz \
&& mv linux-amd64/helm /usr/local/bin/helm \
&& rm -rf linux-amd64
RUN apk add --virtual .helm-build-deps git make \
&& helm plugin install https://github.com/chartmuseum/helm-push.git --version ${HELM_PLUGIN_PUSH_VERSION} \
&& rm -rf /opt/helm/plugins/https-github.com-chartmuseum-helm-push.git \
&& apk del --purge .helm-build-deps
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]