mirror of
https://github.com/containers/podman.git
synced 2025-05-17 06:59:07 +08:00
Merge pull request #25909 from baude/issue25884
Add ability to set layer media type for artifacts
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