-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split official release workflow for binaries and docker (#2701)
* Split official release workflow * Split official release workflow * Split official release workflow * Split official release workflow * Split official release workflow * Split official release workflow * Split official release workflow * Split official release workflow * Tested docker workflow * review comments
- Loading branch information
Showing
6 changed files
with
69 additions
and
19 deletions.
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
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,46 @@ | ||
name: Make an official Release of Docker Images | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
upload_docker: | ||
description: 'Upload TorchServe Docker Images?' | ||
required: true | ||
default: 'no' | ||
upload_kfs: | ||
description: 'Upload TorchServe-kfs Docker Images?' | ||
required: true | ||
default: 'no' | ||
|
||
jobs: | ||
official-release-docker: | ||
runs-on: [self-hosted, ci-gpu] | ||
steps: | ||
- name: Clean up previous run | ||
run: | | ||
echo "Cleaning up previous run" | ||
ls -la ./ | ||
sudo rm -rf ./* || true | ||
sudo rm -rf ./.??* || true | ||
ls -la ./ | ||
- name: Setup Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
architecture: x64 | ||
- name: Checkout TorchServe | ||
uses: actions/checkout@v3 | ||
- name: Login to Docker | ||
env: | ||
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | ||
run: docker login --username pytorchbot --password "$DOCKER_PASSWORD" | ||
- name: Build & Upload pytorch/torchserve Docker images | ||
if: github.event.inputs.upload_docker == 'yes' | ||
run: | | ||
cd docker | ||
python build_upload_release.py --cleanup | ||
- name: Build & Upload pytorch/torchserve-kfs Docker images | ||
if: github.event.inputs.upload_kfs == 'yes' | ||
run: | | ||
cd kubernetes/kserve | ||
python build_upload_release.py --cleanup |
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
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