Skip to content

Commit

Permalink
test: test
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail committed Oct 17, 2024
1 parent ab5ab13 commit 32c33dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builder/build/code_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ func (s *slugBuild) stopPreBuildJob(re *Request) error {
}

func (s *slugBuild) createVolumeAndMount(re *Request, sourceTarFileName string, buildNoCache bool) (volumes []corev1.Volume, volumeMounts []corev1.VolumeMount) {
logrus.Infof("tgzdir ------------------------------------------- %v", re.TGZDir)
cacheSubPath := strings.TrimPrefix(re.CacheDir, "/cache/")
hostPathType := corev1.HostPathDirectoryOrCreate
volumeMounts = []corev1.VolumeMount{}
Expand All @@ -204,6 +205,10 @@ func (s *slugBuild) createVolumeAndMount(re *Request, sourceTarFileName string,
Name: "cache",
MountPath: "/tmp/cache",
})
volumeMounts = append(volumeMounts, corev1.VolumeMount{
Name: "cache",
MountPath: "/tmp/build/node_modules",
})
}
return volumes, volumeMounts
}
Expand Down

0 comments on commit 32c33dd

Please sign in to comment.