Commit 63754eb4 authored by Ryan Diehl's avatar Ryan Diehl
Browse files

ci: pass env vars to docker

parent 0e8fe5d9
Pipeline #173118 passed with stage
in 25 seconds
......@@ -52,6 +52,10 @@ func ciForEachImage(cmd *cobra.Command, args []string) error {
os.Setenv("DT_DOCKERFILE", d.Dockerfile)
os.Setenv("DT_DOCKERCONTEXT", dockerRootDir(d.Dockerfile))
for k, v := range d.EnvVars {
os.Setenv("DT_"+k, v)
var expandedArgs []string
for i := range args {
expandedArgs = append(expandedArgs, os.ExpandEnv(args[i]))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment