Push the target image. Assumes login already performed.
(cli_ctx)
| 89 | |
| 90 | |
| 91 | def push_image(cli_ctx): |
| 92 | """Push the target image. Assumes login already performed.""" |
| 93 | cmd = [cli_ctx.engine, "push", cli_ctx.target] |
| 94 | if cli_ctx.root_build: |
| 95 | cmd.insert(0, "sudo") |
| 96 | _run(cmd).check_returncode() |
| 97 | |
| 98 | |
| 99 | class ChangeDir: |