mirror of https://github.com/docker/compose.git
Add support for labels during build
Signed-off-by: Colin Hebert <hebert.colin@gmail.com>
This commit is contained in:
parent
5b6637d7f8
commit
d906f9ce92
|
@ -72,6 +72,7 @@
|
||||||
"context": {"type": "string"},
|
"context": {"type": "string"},
|
||||||
"dockerfile": {"type": "string"},
|
"dockerfile": {"type": "string"},
|
||||||
"args": {"$ref": "#/definitions/list_or_dict"},
|
"args": {"$ref": "#/definitions/list_or_dict"},
|
||||||
|
"labels": {"$ref": "#/definitions/list_or_dict"},
|
||||||
"cache_from": {"$ref": "#/definitions/list_of_strings"}
|
"cache_from": {"$ref": "#/definitions/list_of_strings"}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
|
|
|
@ -884,6 +884,7 @@ class Service(object):
|
||||||
nocache=no_cache,
|
nocache=no_cache,
|
||||||
dockerfile=build_opts.get('dockerfile', None),
|
dockerfile=build_opts.get('dockerfile', None),
|
||||||
cache_from=build_opts.get('cache_from', None),
|
cache_from=build_opts.get('cache_from', None),
|
||||||
|
labels=build_opts.get('labels', None),
|
||||||
buildargs=build_args
|
buildargs=build_args
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue