fix: use numeric user_id following upstream

This commit is contained in:
Stefan Reimer 2024-05-17 12:09:46 +00:00
parent b9e91dfe11
commit a96e52a7a1

View File

@ -1,8 +1,10 @@
ARG ARGOCD_VERSION="v2.11.0" ARG ARGOCD_VERSION="v2.11.0"
FROM argoproj/argocd:$ARGOCD_VERSION FROM argoproj/argocd:$ARGOCD_VERSION
ARG SOPS_VERSION="3.8.1" ARG SOPS_VERSION="3.8.1"
ARG VALS_VERSION="0.37.1" ARG VALS_VERSION="0.37.1"
ARG HELM_SECRETS_VERSION="4.6.0" ARG HELM_SECRETS_VERSION="4.6.0"
ARG ARGOCD_USER_ID="999"
# vals or sops # vals or sops
ENV HELM_SECRETS_BACKEND="vals" \ ENV HELM_SECRETS_BACKEND="vals" \
HELM_SECRETS_HELM_PATH=/usr/local/bin/helm \ HELM_SECRETS_HELM_PATH=/usr/local/bin/helm \
@ -33,6 +35,6 @@ RUN curl -fsSL https://github.com/helmfile/vals/releases/download/v${VALS_VERSIO
RUN ln -sf "$(helm env HELM_PLUGINS)/helm-secrets/scripts/wrapper/helm.sh" /usr/local/sbin/helm RUN ln -sf "$(helm env HELM_PLUGINS)/helm-secrets/scripts/wrapper/helm.sh" /usr/local/sbin/helm
USER argocd USER ${ARGOCD_USER_ID}
RUN helm plugin install --version ${HELM_SECRETS_VERSION} https://github.com/jkroepke/helm-secrets RUN helm plugin install --version ${HELM_SECRETS_VERSION} https://github.com/jkroepke/helm-secrets