ARGS only apply from the FROM line apparently
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Martyn 2021-02-05 13:48:46 +01:00
parent d14a5b652a
commit 11016dad8f
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,5 @@
FROM argoproj/argocd:v1.8.3 as base FROM argoproj/argocd:v1.8.3 as base
ARG HELM_SECRETS_VERSION="3.4.1"
USER root USER root
RUN apt-get update --allow-insecure-repositories --allow-unauthenticated && \ RUN apt-get update --allow-insecure-repositories --allow-unauthenticated && \
apt-get install -y \ apt-get install -y \
@ -24,6 +23,7 @@ RUN cd /usr/local/bin && \
chmod +x helm helm2 sops chmod +x helm helm2 sops
FROM addwrapper FROM addwrapper
ARG HELM_SECRETS_VERSION="3.4.1"
# helm secrets plugin should be installed as user argocd or it won't be found # helm secrets plugin should be installed as user argocd or it won't be found
USER argocd USER argocd
RUN /usr/local/bin/helm.bin plugin install https://github.com/jkroepke/helm-secrets --version ${HELM_SECRETS_VERSION} RUN /usr/local/bin/helm.bin plugin install https://github.com/jkroepke/helm-secrets --version ${HELM_SECRETS_VERSION}