Skip to content

Commit 139ac16

Browse files
authored
Update binary promotion instructions
Added promotion instructions for pypi, conda and dockerhub
1 parent ed15917 commit 139ac16

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

binaries/README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,40 @@
9999
Note: `--nightly` option puts the *.whl files in a subfolder named 'nightly' in the specified bucket
100100
```
101101
python s3_binary_upload.py --s3-bucket <s3_bucket> --s3-backup-bucket <s3_backup_bucket> --nightly
102-
```
102+
```
103+
104+
## Uploading packages to production torchserve account
105+
### pypi
106+
Binaries should show up here: https://pypi.org/project/torchserve/
107+
108+
You need to be on the list of maintainers to run the below.
109+
110+
`twine upload <path/to.wheel>`
111+
112+
113+
### conda
114+
Binaries should show up here: https://anaconda.org/pytorch/torchserve
115+
116+
117+
```
118+
# Authenticate with pytorchbot credentials
119+
anaconda login
120+
121+
# Upload binaries
122+
anaconda upload -u pytorch <path/to/.bz2>
123+
```
124+
125+
## docker
126+
Binaries should show up here: https://hub.docker.com/r/pytorch/torchserve
127+
128+
Change the staging org to your personal docker or test docker account https://github.com/pytorch/serve/blob/master/docker/promote-docker.sh#L8
129+
130+
```
131+
# authenticate to docker with pytorchbot credentials
132+
docker login
133+
134+
# upload docker image
135+
./docker/promote-docker.sh
136+
```
137+
138+
If everything looks good make sure to `export $DRY_RUN=disabled` or remove that line from the code

0 commit comments

Comments
 (0)