Skip to content

Commit

Permalink
test docker nightly build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
namannandan committed Nov 9, 2023
1 parent b049cbe commit e5033b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/docker-nightly-build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Push Docker Nightly

on:
# run every day at 1:15pm
schedule:
- cron: "15 13 * * *"
push

jobs:
nightly:
runs-on: [self-hosted, ci-gpu]
Expand All @@ -28,10 +27,6 @@ jobs:
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 --cleanup
- name: Push KServe Docker Nightly
run: |
cd kubernetes/kserve
Expand Down
8 changes: 4 additions & 4 deletions kubernetes/kserve/docker_nightly.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
)

# Push Nightly images to official PyTorch Dockerhub account
try_and_handle(f"docker push {organization}/{cpu_version}", dry_run)
try_and_handle(f"docker push {organization}/{gpu_version}", dry_run)
# try_and_handle(f"docker push {organization}/{cpu_version}", dry_run)
# try_and_handle(f"docker push {organization}/{gpu_version}", dry_run)

# Tag nightly images with latest
try_and_handle(
Expand All @@ -58,8 +58,8 @@
)

# Push images with latest tag
try_and_handle(f"docker push {organization}/{project}:latest-cpu", dry_run)
try_and_handle(f"docker push {organization}/{project}:latest-gpu", dry_run)
# try_and_handle(f"docker push {organization}/{project}:latest-cpu", dry_run)
# try_and_handle(f"docker push {organization}/{project}:latest-gpu", dry_run)

# Cleanup built images
if args.cleanup:
Expand Down

0 comments on commit e5033b8

Please sign in to comment.