To tag and push an OCI image to Artifactory with Podman:
Tag your image by running the following command:
podman tag <IMAGE_ID> [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG>Where:
<IMAGE_ID>: The existing image ID[JFrogPlatformURL]: The URL of your JPD, without the protocol schema<REPO_NAME>: The name of the target repository<IMAGE>: The image name<TAG>: The tags you want to apply to the image
For example:
podman tag a1b2c3d4e5f6 company.jfrog.io/oci-local/froggy-app:v1.0.0Run the following command to push the image to Artifactory:
podman push [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG> -f=ociWhere:
[JFrogPlatformURL]: The URL of your JPD, without the protocol schema<REPO_NAME>: The name of the target repository<IMAGE>: The image name<TAG>: The tags you want to apply to the image
For example:
podman push company.jfrog.io/oci-local/froggy-app:v1.0.0 -f=oci
Note
You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.