-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into support_old_torch
- Loading branch information
Showing
4 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Push Docker Nightly | ||
|
||
on: | ||
# run every day at 11:15am | ||
schedule: | ||
- cron: '15 11 * * *' | ||
jobs: | ||
nightly: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Setup Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
architecture: x64 | ||
- name: Checkout TorchServe | ||
uses: actions/checkout@v2 | ||
- name: Login to Docker | ||
env: | ||
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | ||
run: docker login --username pytorchbot --password "$DOCKER_PASSWORD" | ||
- name: Push Docker Nightly | ||
run: | | ||
cd docker | ||
python docker_nightly.py | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
| Version | Supported | | ||
| ------- | ------------------ | | ||
| 0.5.3 | :white_check_mark: | | ||
|
||
|
||
## Reporting a Vulnerability | ||
|
||
If you find a serious vulnerability please report it to opensource@fb.com and torchserve@amazon.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from datetime import date | ||
import os | ||
|
||
def get_nightly_version(): | ||
today = date.today() | ||
return today.strftime("%Y.%m.%d") | ||
|
||
if __name__ == "__main__": | ||
project = "torchserve-nightly" | ||
cpu_version = f"{project}:cpu-{get_nightly_version()}" | ||
gpu_version = f"{project}:gpu-{get_nightly_version()}" | ||
|
||
# Build Nightly images and append the date in the name | ||
os.system(f"./build_image.sh -bt dev -t pytorch/{cpu_version}") | ||
os.system(f"./build_image.sh -bt dev -g -cv cu102 -t pytorch/{gpu_version}") | ||
|
||
# Push Nightly images to official PyTorch Dockerhub account | ||
for version in [cpu_version, gpu_version]: | ||
os.system(f"docker push pytorch/{version}") | ||
|
||
# Tag images with latest and push those as well | ||
os.system(f"docker tag pytorch/{cpu_version} pytorch/{project}:latest-cpu") | ||
os.system(f"docker tag pytorch/{gpu_version} pytorch/{project}:latest-gpu") | ||
|
||
for version in ["latest-cpu", "latest-gpu"]: | ||
os.system(f"docker push pytorch/{project}:{version}") |