71
71
BUILD_PLATFORMS : ${{ matrix.platform }}
72
72
CHANNEL : ${{ inputs.channel }}
73
73
CUDA_VERSION : ${{ matrix.cuda_full_version }}
74
+ CUDA_VERSION_SHORT : ${{ matrix.cuda }}
74
75
CUDNN_VERSION : ${{ matrix.cudnn_version }}
75
76
steps :
76
77
- name : Setup SSH (Click me for login details)
@@ -108,7 +109,7 @@ jobs:
108
109
# To get QEMU binaries in our PATH
109
110
echo "${RUNNER_TEMP}/bin" >> "${GITHUB_PATH}"
110
111
# Generate PyTorch version to use without suffix
111
- echo "PYTORCH_VERSION=$(python3 .github/scripts/generate_pytorch_version.py --no-build-suffix) " >> "${GITHUB_ENV}"
112
+ echo "PYTORCH_VERSION=2.1.2 " >> "${GITHUB_ENV}"
112
113
113
114
- name : Setup release specific variables
114
115
run : |
@@ -126,10 +127,11 @@ jobs:
126
127
- name : Push nightly tags
127
128
if : ${{ github.event.ref == 'refs/heads/nightly' && matrix.image_type == 'runtime' }}
128
129
run : |
129
- PYTORCH_DOCKER_TAG="${PYTORCH_VERSION}-runtime"
130
- CUDA_VERSION=$(python3 -c "import re;print(re.search('CUDA_VERSION\s+=\s+([0-9\.]+)',open('docker.Makefile').read())[1],end='')")
130
+ PYTORCH_DOCKER_TAG="${PYTORCH_VERSION}-cuda$(CUDA_VERSION_SHORT)-cudnn$(CUDNN_VERSION)- runtime"
131
+
131
132
PYTORCH_NIGHTLY_COMMIT=$(docker run ghcr.io/pytorch/pytorch-nightly:"${PYTORCH_DOCKER_TAG}" \
132
133
python -c 'import torch; print(torch.version.git_version[:7],end="")')
134
+
133
135
docker tag ghcr.io/pytorch/pytorch-nightly:"${PYTORCH_DOCKER_TAG}" \
134
136
ghcr.io/pytorch/pytorch-nightly:"${PYTORCH_NIGHTLY_COMMIT}-cu${CUDA_VERSION}"
135
137
docker push ghcr.io/pytorch/pytorch-nightly:"${PYTORCH_NIGHTLY_COMMIT}-cu${CUDA_VERSION}"
0 commit comments