Merge pull request #25909 from baude/issue25884

Add ability to set layer media type for artifacts
This commit is contained in:
openshift-merge-bot[bot]
2025-04-22 19:21:14 +00:00
committed by GitHub
7 changed files with 42 additions and 7 deletions

View File

@ -27,6 +27,10 @@ Note: Set annotations for each file being added.
Append files to an existing artifact. This option cannot be used with the **--type** option.
#### **--file-type**
Set the media type of the artifact file instead of allowing detection to determine the type
#### **--help**
Print usage statement.
@ -55,6 +59,16 @@ Set an annotation for an artifact
$ podman artifact add --annotation date=2025-01-30 quay.io/myartifact/myml:latest /tmp/foobar1.ml
```
Append a file to an existing artifact
```
$ podman artifact add --append quay.io/myartifact/tarballs:latest /tmp/foobar.tar.gz
```
Override the media type of the artifact being added
```
$ podman artifact add --file-type text/yaml quay.io/myartifact/descriptors:latest /tmp/info.yaml
```
## SEE ALSO
**[podman(1)](podman.1.md)**, **[podman-artifact(1)](podman-artifact.1.md)**