Skip to content

Build PyTorch nightly Docker image and push to GitHub Container Registry #61

Build PyTorch nightly Docker image and push to GitHub Container Registry

Build PyTorch nightly Docker image and push to GitHub Container Registry #61

name: Build PyTorch nightly Docker image and push to GitHub Container Registry
on:
schedule:
# Push the nightly docker daily at 1 PM UTC
- cron: '0 13 * * *'
# Have the ability to trigger this job manually using the API as well
workflow_dispatch:
jobs:
build-publish-docker:
if: ${{ github.repository == 'pytorch/pytorch' }}
runs-on: linux.2xlarge
env:
GHCR_PAT: ${{ secrets.GHCR_PAT }}
steps:
- name: Checkout
uses: zhouzhuojie/checkout@05b13c9a0d21f08f6d5e64a1d5042246d13619d9
with:
ref: master
- name: Build and upload nightly docker
run: |
bash .github/scripts/build_publish_nightly_docker.sh