@@ -106,7 +106,7 @@ def build():
106
106
)
107
107
108
108
# Resolve our main set of tags for the generated images; this is used only for Source and downstream
109
- if config .buildTargetSource :
109
+ if config .buildTargets [ "source" ] :
110
110
mainTags = [
111
111
"{}{}-{}" .format (config .release , config .suffix , config .prereqsTag ),
112
112
config .release + config .suffix ,
@@ -243,7 +243,7 @@ def build():
243
243
244
244
# Ensure the Docker daemon is configured correctly
245
245
requiredLimit = WindowsUtils .requiredSizeLimit ()
246
- if DockerUtils .maxsize () < requiredLimit and config .buildTargetSource :
246
+ if DockerUtils .maxsize () < requiredLimit and config .buildTargets [ "source" ] :
247
247
logger .error ("SETUP REQUIRED:" )
248
248
logger .error (
249
249
"The max image size for Windows containers must be set to at least {}GB." .format (
@@ -308,7 +308,7 @@ def build():
308
308
password = ""
309
309
310
310
elif (
311
- not config .buildTargetSource
311
+ not config .buildTargets [ "source" ]
312
312
or builder .willBuild ("ue4-source" , mainTags ) == False
313
313
):
314
314
@@ -357,7 +357,7 @@ def build():
357
357
]
358
358
359
359
# Build the UE4 build prerequisites image
360
- if config .buildTargetPrerequisites :
360
+ if config .buildTargets [ "build-prerequisites" ] :
361
361
# Compute the build options for the UE4 build prerequisites image
362
362
# (This is the only image that does not use any user-supplied tag suffix, since the tag always reflects any customisations)
363
363
prereqsArgs = ["--build-arg" , "BASEIMAGE=" + config .baseImage ]
@@ -384,7 +384,7 @@ def build():
384
384
logger .info ("Skipping ue4-build-prerequisities image build." )
385
385
386
386
# Build the UE4 source image
387
- if config .buildTargetSource :
387
+ if config .buildTargets [ "source" ] :
388
388
# Start the HTTP credential endpoint as a child process and wait for it to start
389
389
if config .opts .get ("credential_mode" , "endpoint" ) == "endpoint" :
390
390
endpoint = CredentialEndpoint (username , password )
@@ -414,14 +414,14 @@ def build():
414
414
else :
415
415
logger .info ("Skipping ue4-source image build." )
416
416
417
- if config .buildTargetEngine or config .buildTargetMinimal :
417
+ if config .buildTargets [ "engine" ] or config .buildTargets [ "minimal" ] :
418
418
ue4BuildArgs = prereqConsumerArgs + [
419
419
"--build-arg" ,
420
420
"TAG={}" .format (mainTags [1 ]),
421
421
]
422
422
423
423
# Build the UE4 Engine source build image, unless requested otherwise by the user
424
- if config .buildTargetEngine :
424
+ if config .buildTargets [ "engine" ] :
425
425
builder .build (
426
426
"ue4-engine" ,
427
427
mainTags ,
@@ -432,7 +432,7 @@ def build():
432
432
logger .info ("Skipping ue4-engine image build." )
433
433
434
434
# Build the minimal UE4 CI image, unless requested otherwise by the user
435
- if config .buildTargetMinimal == True :
435
+ if config .buildTargets [ "minimal" ] :
436
436
minimalArgs = (
437
437
["--build-arg" , "CHANGELIST={}" .format (config .changelist )]
438
438
if config .changelist is not None
@@ -449,7 +449,7 @@ def build():
449
449
logger .info ("Skipping ue4-minimal image build." )
450
450
451
451
# Build the full UE4 CI image, unless requested otherwise by the user
452
- if config .buildTargetFull :
452
+ if config .buildTargets [ "full" ] :
453
453
454
454
# If custom version strings were specified for ue4cli and/or conan-ue4cli, use them
455
455
infrastructureFlags = []
0 commit comments