Skip to content

Commit 75754f8

Browse files
ArthurSensroboquat
authored andcommitted
Only spin up VMs if a preview is required
Signed-off-by: ArthurSens <[email protected]>
1 parent 5407e1a commit 75754f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.werft/jobs/build/prepare.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function decideHarvesterVMCreation(werft: Werft, config: JobConfig) {
8383
}
8484

8585
function shouldCreateVM(config: JobConfig) {
86-
return config.withVM && (
86+
return config.withVM && config.withPreview && (
8787
!VM.vmExists({ name: config.previewEnvironment.destname }) ||
8888
config.cleanSlateDeployment
8989
)

0 commit comments

Comments
 (0)