We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1757272 commit 56d6ff7Copy full SHA for 56d6ff7
1 file changed
lain_cli/build.py
@@ -11,11 +11,13 @@
11
@arg('--release', help="build from build image if it exists")
12
@arg('--push', help="tag release and meta image with version and push to registry")
13
@arg('phase', default="", help="lain cluster phase id, can be added by lain config save")
14
-def build(phase, push=False, release=False):
+def build(**kwargs):
15
"""
16
Build release and meta images
17
18
-
+ push = kwargs.get('push', False)
19
+ release = kwargs.get('release', False)
20
+ phase = kwargs.get('phase', None)
21
info("Building meta and release images ...")
22
validate_only_warning()
23
stage = get_phase_stage(phase) if phase else None
0 commit comments