dynamically set architecture label for docker image
@@ -385,6 +385,14 @@ class Docker(object):
cmd = parameters.get('docker_cmd', 'null')
env = parameters.get('docker_env', 'null')
label = parameters.get('docker_label', 'null')
+
+ # Dynamically set the architecture label if requested by config
+ set_arch_label = parameters.get('docker_set_arch_label')
+ if set_arch_label:
+ if label == 'null':
+ label = dict()
+ label["architecture"] = tldobj.arch
+
rdict = { repository: { tag: docker_image_id } }
dockerversion = parameters.get('dockerversion', '0.11.1')
