upload¶
Upload artifacts to a configured target.
Syntax¶
Arguments¶
upload does not accept positional arguments.
Options¶
| Short | Long | Default | Description |
|---|---|---|---|
| - | --target TEXT |
required | Upload target: pypi, docker, or github |
| - | --image TEXT |
- | Docker image name |
-t |
--tag TEXT |
- | Docker image tag or GitHub release tag |
| - | --artifact TEXT |
- | Artifacts to upload; can be repeated |
| - | --repository TEXT |
testpypi |
PyPI repository name |
| - | --repository-url TEXT |
- | PyPI repository upload URL |
| - | --registry TEXT |
- | Docker registry prefix, e.g. localhost:5000 |
-n |
--dry-run |
False |
Preview upload actions without executing |
Examples¶
Upload to PyPI (defaults to TestPyPI):
Upload a Docker image:
Upload to a local Docker registry:
Preview without uploading:
Output Notes / Common Errors¶
- Use
--repository-urlto override the default PyPI/TestPyPI endpoint. --artifactcan be specified multiple times for GitHub releases.