Build PyTorch nightly Docker image and push to GitHub Container Registry #61
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
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 |