Closed tannerleslie closed 1 month ago
I have the same problem.
I had a look at the code, and if I understand it correctly interpolate
which would do that, is only called if secrets is used and not secret-files.
See:
edit: but maybe I am wrong and interpolate does only interpolate things in curly braces and not with $.
Hi folks… thank you for reporting this… I will try to take a look during the weekend ❤️
@tannerleslie @Ribosom Hi again folks... Try version 6.0.4 please and let me know 🙏🏻
@gperdomor Thank you! Worked for me.
Perfect, I'm glad to hear that..
The
secret-files
option for@nx-tools/nx-container:build
seemingly ignores environment variables.I have a target defined like
and
$HOME_DIR
is defined in my.env
file at the workspace root likeBut running the target like this results in the error
secret file $HOME_DIR/.npmrc not found
, not respecting the env variable, and build fails trying to access the secret.I am using
"@nx-tools/nx-container": "^6.0.1"
and"nx": "19.2.3"
Not sure if this is a bug or a feature request but I'd love to be able to use this.