dunner
dunner copied to clipboard
Dunner envs not working
With latest master, try :
commands:
- ["echo","$FOO_USER"]
- ["echo", "$BUILD_DIR"]
envs:
- FOO_USER=foo
- BUILD_DIR=`$GOPATH`
Environment variables are not passed to container. The commands above do not print passed values.
Use printenv command to check if environment variables are set or not. I did.
Actually, the problem is the command here is being executed as echo "$FOO_USER", which will have output $FOO_USER and not foo. But if you use $FOO_USER inside a bash script and copy it inside the container, it might work correctly.
Okay, I tried with printenv. So its being set correctly.
But this is also a usecase that should work with echo. Do you think we can address it with some change?