Skip to content

Commit

Permalink
reverting temp changes
Browse files Browse the repository at this point in the history
  • Loading branch information
udaij12 committed Sep 15, 2024
1 parent df0a0ef commit 473c05e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/docker-nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Push Docker Nightly

on:
# Run every day at 1:15pm
# schedule:
# - cron: "15 13 * * *"
# workflow_dispatch:
push:
branches: "docker_aarch"
schedule:
- cron: "15 13 * * *"
workflow_dispatch:

jobs:
nightly:
Expand All @@ -30,23 +28,23 @@ jobs:
submodules: recursive
- name: Login to Docker
env:
DOCKER_PASSWORD: ${{secrets.UDAI_TEST}}
run: docker login --username udaij12 --password "$DOCKER_PASSWORD"
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: docker login --username pytorchbot --password "$DOCKER_PASSWORD"
- name: Push Docker Nightly
run: |
cd docker
sudo apt-get update
docker buildx use multibuilder
python docker_nightly.py --cleanup
# - name: Push KServe Docker Nightly
# run: |
# cd kubernetes/kserve
# python docker_nightly.py --cleanup
# - name: Open issue on failure
# if: ${{ failure() && github.event_name == 'schedule' }}
# uses: dacbd/create-issue-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# title: Nightly Docker build failed
# body: Commit ${{ github.sha }} daily scheduled [CI run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) failed, please check why
# assignees: ""
- name: Push KServe Docker Nightly
run: |
cd kubernetes/kserve
python docker_nightly.py --cleanup
- name: Open issue on failure
if: ${{ failure() && github.event_name == 'schedule' }}
uses: dacbd/create-issue-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Nightly Docker build failed
body: Commit ${{ github.sha }} daily scheduled [CI run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) failed, please check why
assignees: ""
2 changes: 1 addition & 1 deletion docker/docker_nightly.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
parser.add_argument(
"--organization",
type=str,
default="udaij12",
default="pytorch",
help="The name of the Dockerhub organization where the images will be pushed",
)
parser.add_argument(
Expand Down

0 comments on commit 473c05e

Please sign in to comment.