Skip to content

Commit

Permalink
Merge pull request #415 from milanbalazs/main
Browse files Browse the repository at this point in the history
Make "images.push" method support "format" parameter
  • Loading branch information
openshift-merge-bot[bot] authored Aug 5, 2024
2 parents 060e8a6 + 102ea67 commit f6c3d25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions podman/domain/images_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def push(
destination (str): alternate destination for image. (Podman only)
stream (bool): return output as blocking generator. Default: False.
tlsVerify (bool): Require TLS verification.
format (str): Manifest type (oci, v2s1, or v2s2) to use when pushing an image.
Default is manifest type of source, with fallbacks.
Raises:
APIError: when service returns an error
Expand All @@ -220,6 +222,7 @@ def push(
params = {
"destination": kwargs.get("destination"),
"tlsVerify": kwargs.get("tlsVerify"),
"format": kwargs.get("format"),
}

name = f'{repository}:{tag}' if tag else repository
Expand Down

0 comments on commit f6c3d25

Please sign in to comment.