mirror of
https://github.com/containers/podman.git
synced 2025-05-17 06:59:07 +08:00
Add ability to set layer media type for artifacts
in #25884, it was pointed out that the standard detection used to determine the artifact's file type can be wrong. in those cases, it would be handy for the user to be able to override the media type of the layer. as such, added a new option called `--file-type`, which is optional, and allows users to do just that. `podman artifact add --file-type text/yaml quay.io/artifact/config:latest ./config.yaml ` Fixes: #25884 Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -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)**
|
||||
|
Reference in New Issue
Block a user