Add remote option
This commit is contained in:
parent
1fd5fc07a5
commit
ca8ae9a657
@ -38,6 +38,10 @@ def parse_args():
|
|||||||
'--key',
|
'--key',
|
||||||
help='gpg key to sign',
|
help='gpg key to sign',
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'--remote',
|
||||||
|
help='remote to sync images',
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--built-images-dir',
|
'--built-images-dir',
|
||||||
help='path to already built image for stages other then build',
|
help='path to already built image for stages other then build',
|
||||||
@ -92,10 +96,15 @@ def main():
|
|||||||
stages = set(args.stages) - set(args.skip_stages)
|
stages = set(args.stages) - set(args.skip_stages)
|
||||||
|
|
||||||
config_override = {}
|
config_override = {}
|
||||||
|
def args_to_override(key):
|
||||||
|
if (value := getattr(args, key)) is not None:
|
||||||
|
config_override[key] = value
|
||||||
|
|
||||||
if args.force_rebuild:
|
if args.force_rebuild:
|
||||||
config_override['rebuild_after'] = {'days': 0}
|
config_override['rebuild_after'] = {'days': 0}
|
||||||
if key := args.key:
|
|
||||||
config_override['key'] = key
|
for arg in ['key', 'remote']:
|
||||||
|
args_to_override(arg)
|
||||||
|
|
||||||
cb = cloud_build.CB(
|
cb = cloud_build.CB(
|
||||||
config=args.config,
|
config=args.config,
|
||||||
|
Loading…
Reference in New Issue
Block a user