File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
11
11
"github.com/diggerhq/digger/libs/scheduler"
12
12
"github.com/diggerhq/digger/libs/spec"
13
13
"github.com/diggerhq/digger/libs/storage"
14
+ "github.com/samber/lo"
14
15
"log"
15
16
"os"
16
17
"time"
@@ -83,6 +84,11 @@ func RunSpec(
83
84
usage .ReportErrorAndExit (spec .VCS .Actor , fmt .Sprintf ("could not get plan storage: %v" , err ), 8 )
84
85
}
85
86
87
+ workflow := diggerConfig .Workflows [job .ProjectName ]
88
+ stateEnvVars , commandEnvVars := digger_config .CollectTerraformEnvConfig (workflow .EnvVars )
89
+ job .StateEnvVars = lo .Assign (job .StateEnvVars , stateEnvVars )
90
+ job .CommandEnvVars = lo .Assign (job .CommandEnvVars , commandEnvVars )
91
+
86
92
jobs := []scheduler.Job {job }
87
93
88
94
fullRepoName := fmt .Sprintf ("%v-%v" , spec .VCS .RepoOwner , spec .VCS .RepoName )
You can’t perform that action at this time.
0 commit comments