add SOPS to tools
Some checks failed
Build and push k8s-workflow-image / build (push) Failing after 4s
Some checks failed
Build and push k8s-workflow-image / build (push) Failing after 4s
This commit is contained in:
parent
819598452b
commit
968b17a945
@ -2,6 +2,7 @@ FROM alpine
|
||||
|
||||
ARG HELM_VERSION=3.18.0
|
||||
ARG KUBECTL_VERSION=1.17.5
|
||||
ARG SOPS_VERSION=3.8.1
|
||||
|
||||
# Determine architecture
|
||||
RUN case `uname -m` in \
|
||||
@ -13,13 +14,15 @@ RUN case `uname -m` in \
|
||||
*) echo "Unsupported arch" && exit 1 ;; \
|
||||
esac && echo "ARCH=$ARCH" > /envfile
|
||||
|
||||
# Install Helm and kubectl
|
||||
# Install Helm and kubectl and SOPS
|
||||
RUN . /envfile && \
|
||||
apk add --no-cache curl ca-certificates bash && \
|
||||
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} && \
|
||||
curl -sLO https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${ARCH}/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
|
||||
RUN apk update && apk add --no-cache nodejs npm
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user