#How to set array of dagger.Secret in .env

1 messages · Page 1 of 1 (latest)

lethal citrus
#

I created a function with a tokes argument defined as an array of *dagger.Secret. I can call the function like dagger call foo --tokens=env://TOKEN1 --tokens=env://TOKEN2 but I want to set the default value for tokens in a .env and can't seem to get it to work. Should this be possible? If so can you give a simple example of how the argument looks in the .env file?

lost plaza
#

I think I personally also like being able to do something like:

FOO_ARG=bar
FOO_ARG=baz

FOO_ARG=bar,baz should also work since that works via arguments also

lethal citrus
#

Are you describing a Dagger enhancement or a workaround that I could implement?

lost plaza
lethal citrus
#

no worries. I appreciate getting a timely answer.

lost plaza
#

working on this today