From 6274bc6b9e6906057d96e8e8e1e05578b2d93b36 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Tue, 12 Nov 2024 07:14:23 +0100 Subject: [PATCH] Workaround for SSL error with curl get.helm.sh in github actions --- runner.Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/runner.Dockerfile b/runner.Dockerfile index f539075..51fd148 100644 --- a/runner.Dockerfile +++ b/runner.Dockerfile @@ -9,7 +9,7 @@ RUN set -ex; \ ); \ \ export DEBIAN_FRONTEND=noninteractive; \ - runDeps='ca-certificates curl git jq unzip findutils patch xz-utils'; \ + runDeps='ca-certificates curl git jq unzip findutils patch xz-utils gpg apt-transport-https'; \ buildDeps=''; \ apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends; \ \ @@ -43,7 +43,14 @@ COPY bin/y-kustomize /usr/local/src/ystack/bin/ RUN y-kustomize version COPY bin/y-helm /usr/local/src/ystack/bin/ -RUN y-helm version --client=true +# RUN y-helm version --client=true +RUN curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | tee /usr/share/keyrings/helm.gpg > /dev/null \ + && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list \ + && apt-get update \ + && apt-get install helm \ + && helm version --client=true \ + && ln -s $(which helm) /usr/local/src/ystack/bin/helm \ + && y-helm version --client=true COPY bin/y-buildctl /usr/local/src/ystack/bin/ RUN y-buildctl --version