add SOPS to tools
Some checks failed
Build and push k8s-workflow-image / build (push) Failing after 4s

This commit is contained in:
Chris Ellrich 2025-05-27 21:20:23 +02:00
parent 819598452b
commit 968b17a945
Signed by: c.ellrich
GPG Key ID: D1850E1719D845AE

View File

@ -2,6 +2,7 @@ FROM alpine
ARG HELM_VERSION=3.18.0 ARG HELM_VERSION=3.18.0
ARG KUBECTL_VERSION=1.17.5 ARG KUBECTL_VERSION=1.17.5
ARG SOPS_VERSION=3.8.1
# Determine architecture # Determine architecture
RUN case `uname -m` in \ RUN case `uname -m` in \
@ -13,13 +14,15 @@ RUN case `uname -m` in \
*) echo "Unsupported arch" && exit 1 ;; \ *) echo "Unsupported arch" && exit 1 ;; \
esac && echo "ARCH=$ARCH" > /envfile esac && echo "ARCH=$ARCH" > /envfile
# Install Helm and kubectl # Install Helm and kubectl and SOPS
RUN . /envfile && \ RUN . /envfile && \
apk add --no-cache curl ca-certificates bash && \ apk add --no-cache curl ca-certificates bash && \
curl -sL https://get.helm.sh/helm-v${HELM_VERSION}-linux-${ARCH}.tar.gz | tar -xz && \ curl -sL https://get.helm.sh/helm-v${HELM_VERSION}-linux-${ARCH}.tar.gz | tar -xz && \
mv linux-${ARCH}/helm /usr/bin/helm && chmod +x /usr/bin/helm && rm -rf linux-${ARCH} && \ mv linux-${ARCH}/helm /usr/bin/helm && chmod +x /usr/bin/helm && rm -rf linux-${ARCH} && \
curl -sLO https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && \ curl -sLO https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && \
mv kubectl /usr/bin/kubectl && chmod +x /usr/bin/kubectl mv kubectl /usr/bin/kubectl && chmod +x /usr/bin/kubectl
curl -sLO https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops-v${SOPS_VERSION}.linux.${ARCH} && \
mv sops-v${SOPS_VERSION}.linux.${ARCH} /usr/bin/sops && chmod +x /usr/bin/sops
# Install Node.js # Install Node.js
RUN apk update && apk add --no-cache nodejs npm RUN apk update && apk add --no-cache nodejs npm