mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 19:28:05 +08:00
commit
bd618e95dd
@ -242,6 +242,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",
|
||||
})
|
||||
}
|
||||
} else {
|
||||
volumes = []corev1.Volume{
|
||||
@ -377,6 +381,9 @@ func (s *slugBuild) runBuildJob(re *Request) error {
|
||||
if k == "NO_CACHE" && v == "True" {
|
||||
buildNoCache = true
|
||||
}
|
||||
if k == "NODE_MODULES_CACHE" && v == "True" {
|
||||
buildNoCache = true
|
||||
}
|
||||
}
|
||||
podSpec := corev1.PodSpec{
|
||||
RestartPolicy: corev1.RestartPolicyOnFailure,
|
||||
|
@ -118,4 +118,4 @@ func GetRunnerImage(brVersion string) string {
|
||||
}
|
||||
|
||||
// CIVERSION -
|
||||
var CIVERSION = "v5.16.0-release"
|
||||
var CIVERSION = "v5.17.1-release"
|
||||
|
@ -110,7 +110,7 @@ func (a *Builder) AddFlags(fs *pflag.FlagSet) {
|
||||
fs.BoolVar(&a.BuildKitCache, "buildkit-cache", false, "whether to enable the buildkit image cache")
|
||||
fs.IntVar(&a.KeepCount, "keep-count", 5, "default number of reserved copies for images")
|
||||
fs.IntVar(&a.CleanInterval, "clean-interval", 60, "clean image interval,default 60 minute")
|
||||
fs.StringVar(&a.BRVersion, "br-version", "v5.16.0-release", "builder and runner version")
|
||||
fs.StringVar(&a.BRVersion, "br-version", "v5.17.1-release", "builder and runner version")
|
||||
|
||||
fs.StringSliceVar(&a.EventLogServers, "event-servers", []string{"rbd-eventlog:6366"}, "event log server address. simple lb")
|
||||
fs.StringVar(&a.MQAPI, "mq-api", "rbd-mq:6300", "acp_mq api")
|
||||
|
Loading…
Reference in New Issue
Block a user