-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
I'm using --dotenvMe flag to pass the key instead of using .env.me and due to how our CICD (Tekton) is configured, we cannot use .env.me
The problem is that running this locally even without .env.me works fine:
npx --yes dotenv-vault pull -m=it_........but running the same in Docker does not:
........
ARG BUILD_CONFIG=development
ARG DOTENV_ME
........
RUN echo "BUILD_CONFIG is: $BUILD_CONFIG" # outputs "production"
RUN echo "ENV.ME is: $DOTENV_ME" # outputs "it_...."
RUN npx --yes dotenv-vault pull -m=$DOTENV_ME $BUILD_CONFIG .env.$BUILD_CONFIGthe error is:
INFO[0233] RUN DOTENV_ME=$DOTENV_ME npx --yes dotenv-vault@latest pull -m=$DOTENV_ME $BUILD_CONFIG .env.$BUILD_CONFIG
INFO[0236] Cmd: /bin/sh
INFO[0236] Args: [npx --yes dotenv-vault@latest pull -m=$DOTENV_ME $BUILD_CONFIG .env.$BUILD_CONFIG]
INFO[0236] Running: [/bin/sh npx --yes dotenv-vault@latest pull -m=$DOTENV_ME $BUILD_CONFIG .env.$BUILD_CONFIG]
npm warn deprecated @oclif/screen@3.0.8: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
remote: Securely pulling development... aborting
x Aborted.
Code: NOT_FOUND_DOTENV_ME
Suggestion: run command: $ npx dotenv-vault login
› Error: Cannot find .env.me (DOTENV_ME)
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 2
any thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels