I have an .env file containing some secrets. Those secrets are in the following form:
.env:
secret-KEY-1=secret-value-1
secret-KEY-2=secret-value-2
I found out that I was only able to successfully pass a secret to a function when the .env file resembles the following:
.env.dagger:
secret-value-1
That is, no key nor any other secret. So, basically I had to create another file just to be able to do that.
Is there a way to still pass a secret when my .env file is in its original form (first codeblock)?
The API I am using is .withSecretVariable("Token", token) and I am calling it like that:
dagger call build --source=. --token=file:./.env.dagger