Skip to content

Commit 35e2ab7

Browse files
authored
fix: add builder job env (#2433)
Signed-off-by: Qi Zhang <[email protected]>
1 parent fad60e4 commit 35e2ab7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builder/build/code_build.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ func (s *slugBuild) runBuildJob(re *Request) error {
292292
{Name: "CODE_COMMIT_MESSAGE", Value: re.Commit.Message},
293293
{Name: "LANGUAGE", Value: re.Lang.String()},
294294
}
295+
// Add LANG_GOODRAIN_ME from environment variable if set
296+
if langGoodRainMe := os.Getenv("LANG_GOODRAIN_ME"); langGoodRainMe != "" {
297+
envs = append(envs, corev1.EnvVar{Name: "LANG_GOODRAIN_ME", Value: langGoodRainMe})
298+
}
295299
if re.ServerType == "oss" {
296300
envs = append(envs, corev1.EnvVar{Name: "PACKAGE_DOWNLOAD_URL", Value: re.RepositoryURL})
297301
envs = append(envs, corev1.EnvVar{Name: "PACKAGE_DOWNLOAD_USER", Value: re.CodeSouceInfo.User})

0 commit comments

Comments
 (0)