Skip to content

Commit

Permalink
FIXES #17: implement push
Browse files Browse the repository at this point in the history
  • Loading branch information
muayyad-alsadi committed Jun 9, 2019
1 parent 642e049 commit f7ba7ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions podman-compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,13 +510,14 @@ def push(project_name, dirname, pods, containers, dry_run, podman_path, cmd_args
parser = argparse.ArgumentParser()
parser.prog+=' push'
parser.add_argument("--ignore-push-failures", action='store_true',
help="Push what it can and ignores images with push failures.")
parser.add_argument('services', metavar='services', nargs='+',
help="Push what it can and ignores images with push failures. (not implemented)")
parser.add_argument('services', metavar='services', nargs='*',
help='services to push')
args = parser.parse_args(cmd_args)
services_to_push = set(args.services)
services = set(args.services)
for cnt in containers:
if 'build' not in cnt: continue
if services and cnt['_service'] not in services: continue
run_podman(dry_run, podman_path, ["push", cnt["image"]], sleep=0)

# pylint: disable=unused-argument
Expand Down

0 comments on commit f7ba7ce

Please sign in to comment.