feat: Add helm binary (required for helm package action)
All checks were successful
build-image / Semantic Release (Dry-run) (push) Successful in 18s
build-image / Container image (push) Successful in 5m0s
build-image / Semantic Release (push) Successful in 20s

This commit is contained in:
Danny Bessems 2024-06-06 20:52:29 +10:00
parent 739047e477
commit c32a19ab36

View File

@ -13,6 +13,10 @@ ADD https://${REPO_USERNAME}:${REPO_PASSWORD}@sn.itch.fyi/Repository/bin/VMware/
RUN apk --update add --no-cache \ RUN apk --update add --no-cache \
curl \ curl \
jq && \ 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 && \
curl -L https://api.github.com/repos/mikefarah/yq/releases/latest | \ curl -L https://api.github.com/repos/mikefarah/yq/releases/latest | \
jq -r '.assets[] | select(.name | endswith("yq_linux_amd64")) | .browser_download_url' | \ jq -r '.assets[] | select(.name | endswith("yq_linux_amd64")) | .browser_download_url' | \
xargs -I {} curl -L -o /tmp/yq {} && \ xargs -I {} curl -L -o /tmp/yq {} && \
@ -24,6 +28,7 @@ COPY --from=packer /bin/packer /bin/packer
COPY --from=terraform /bin/terraform /bin/terraform COPY --from=terraform /bin/terraform /bin/terraform
COPY --from=download /tmp/ovftool-installer /tmp/ovftool-installer COPY --from=download /tmp/ovftool-installer /tmp/ovftool-installer
COPY --from=download /tmp/yq /bin/yq COPY --from=download /tmp/yq /bin/yq
COPY --from=download /tmp/helm /usr/bin/helm
ENV LANG en_US.UTF-8 ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en ENV LANGUAGE en_US:en