Add GH Actions CI to build nightly Docker and push to GitHub Container Registry (#51755)

Summary:
Currently PyTorch repository provides Dockerfile to build Docker with nightly builds, but it doesn't have CI to actually build those Dockers.
This PR adds a GitHub action workflow to create PyTorch nightly build Docker and publish them to GitHub Container Registry.
Also, add "--always" option to the `git describe --tags` command that generates the Docker image tag.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/51755

Test Plan: Manually trigger the workflow build in the GitHub Actions web UI.

Reviewed By: seemethere

Differential Revision: D26320180

Pulled By: xuzhao9

fbshipit-source-id: e00b472df14f5913cab9b06a41e837014e87f1c7
This commit is contained in:
Xu Zhao
2021-02-08 14:56:45 -08:00
committed by Facebook GitHub Bot
parent 58eb23378f
commit 1e70b4bb73
3 changed files with 51 additions and 1 deletions

View File

@ -17,7 +17,7 @@ BASE_DEVEL = nvidia/cuda:$(CUDA_VERSION)-cudnn$(CUDNN_VERSION)-de
INSTALL_CHANNEL = pytorch
PYTHON_VERSION = 3.7
PYTORCH_VERSION = $(shell git describe --tags)
PYTORCH_VERSION = $(shell git describe --tags --always)
# Can be either official / dev
BUILD_TYPE = dev
BUILD_PROGRESS = auto