...

Text file src/github.com/sigstore/cosign/v2/doc/cosign_upload_blob.md

Documentation: github.com/sigstore/cosign/v2/doc

     1## cosign upload blob
     2
     3Upload one or more blobs to the supplied container image address.
     4
     5```
     6cosign upload blob [flags]
     7```
     8
     9### Examples
    10
    11```
    12  cosign upload blob -f <blob ref> <image uri>
    13
    14  # upload a blob named foo to the location specified by <IMAGE>
    15  cosign upload blob -f foo <IMAGE>
    16
    17  # upload a blob named foo to the location specified by <IMAGE>, setting the os field to "MYOS".
    18  cosign upload blob -f foo:MYOS <IMAGE>
    19
    20  # upload a blob named foo to the location specified by <IMAGE>, setting the os field to "MYOS" and the platform field to "MYPLATFORM".
    21  cosign upload blob -f foo:MYOS/MYPLATFORM <IMAGE>
    22
    23  # upload two blobs named foo-darwin and foo-linux to the location specified by <IMAGE>, setting the os fields
    24  cosign upload blob -f foo-darwin:darwin -f foo-linux:linux <IMAGE>
    25
    26  # upload a blob named foo to the location specified by <IMAGE>, setting annotations mykey=myvalue.
    27  cosign upload blob -a mykey=myvalue -f foo <IMAGE>
    28
    29  # upload two blobs named foo-darwin and foo-linux to the location specified by <IMAGE>, setting annotations
    30  cosign upload blob -a mykey=myvalue -a myotherkey="my other value" -f foo-darwin:darwin -f foo-linux:linux <IMAGE>
    31```
    32
    33### Options
    34
    35```
    36      --allow-http-registry                                                                      whether to allow using HTTP protocol while connecting to registries. Don't use this for anything but testing
    37      --allow-insecure-registry                                                                  whether to allow insecure connections to registries (e.g., with expired or self-signed TLS certificates). Don't use this for anything but testing
    38  -a, --annotation stringToString                                                                annotations to set (default [])
    39      --attachment-tag-prefix [AttachmentTagPrefix]sha256-[TargetImageDigest].[AttachmentName]   optional custom prefix to use for attached image tags. Attachment images are tagged as: [AttachmentTagPrefix]sha256-[TargetImageDigest].[AttachmentName]
    40      --ct string                                                                                content type to set
    41  -f, --files strings                                                                            <filepath>:[platform/arch]
    42  -h, --help                                                                                     help for blob
    43      --k8s-keychain                                                                             whether to use the kubernetes keychain instead of the default keychain (supports workload identity).
    44      --registry-password string                                                                 registry basic auth password
    45      --registry-token string                                                                    registry bearer auth token
    46      --registry-username string                                                                 registry basic auth username
    47```
    48
    49### Options inherited from parent commands
    50
    51```
    52      --output-file string   log output to a file
    53  -t, --timeout duration     timeout for commands (default 3m0s)
    54  -d, --verbose              log debug output
    55```
    56
    57### SEE ALSO
    58
    59* [cosign upload](cosign_upload.md)	 - Provides utilities for uploading artifacts to a registry
    60

View as plain text