Skip to content

Commit c23e076

Browse files
committed
Add SOPS support
1 parent 24aea79 commit c23e076

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ ARG TARGETARCH
77
ADD https://get.helm.sh/helm-v${HELM_VERSION}-linux-${TARGETARCH}.tar.gz /tmp/tarballs/
88
RUN tar zxvf /tmp/tarballs/*.tar.gz -C /usr/local/bin/ --strip-components=1 linux-${TARGETARCH}/helm
99

10+
# sops: encrypting secrets
11+
FROM ubuntu:22.04 as sops
12+
ARG SOPS_VERSION=3.8.1
13+
ARG ARCH=amd64
14+
ADD --chmod=755 https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops-v${SOPS_VERSION}.linux.$ARCH /usr/local/bin/sops
15+
1016
FROM node:16-bullseye-slim
1117

1218
# We need to set a home directory, since both Helm and NPM won't be able to write to /.
@@ -15,6 +21,7 @@ ENV HOME=/tmp/argocd-cdk8s-plugin/
1521
RUN mkdir $HOME && chmod 770 $HOME
1622
RUN apt-get update && apt-get install git tree ca-certificates -y --no-install-recommends && rm -rf /var/lib/apt/lists/*
1723
COPY --from=helm /usr/local/bin/ /usr/local/bin/
24+
COPY --from=sops /usr/local/bin/ /usr/local/bin/
1825
COPY plugin.yaml /home/argocd/cmp-server/config/plugin.yaml
1926
COPY scripts/* /
2027

0 commit comments

Comments
 (0)