Lines Matching +full:fetch +full:- +full:depth
7 - Dockerfile
8 - docker.Makefile
9 - .github/workflows/docker-release.yml
10 - .github/scripts/generate_docker_release_matrix.py
13 - nightly
16 - v[0-9]+.[0-9]+.[0-9]+
17 # Release candidate tags look like: v1.11.0-rc1
18 - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
19 - ciflow/nightly/*
22 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.eve…
23 cancel-in-progress: true
34 permissions: read-all
37 generate-matrix:
39 runs-on: [self-hosted, linux.large]
41 matrix: ${{ steps.generate-matrix.outputs.matrix }}
43 - name: Checkout PyTorch
44 uses: pytorch/pytorch/.github/actions/checkout-pytorch@release/2.4
46 fetch-depth: 1
48 - name: Get docker release matrix
49 id: generate-matrix
57 runs-on: [self-hosted, linux.2xlarge]
58 … == 'refs/heads/nightly' || startsWith(github.event.ref, 'refs/tags/v')) && 'docker-build' || '' }}
59 timeout-minutes: 240
60 needs: generate-matrix
62 matrix: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
63 fail-fast: false
71 - name: Setup SSH (Click me for login details)
72 uses: pytorch/test-infra/.github/actions/setup-ssh@release/2.4
74 github-secret: ${{ secrets.GITHUB_TOKEN }}
76 # deep clone (fetch-depth 0) required for git merge-base
77 - name: Checkout PyTorch
80 fetch-depth: 0
82 - name: Setup Linux
83 uses: ./.github/actions/setup-linux
84 - name: Login to GitHub Container Registry
86 uses: docker/login-action@v2
91 # Setup multi-arch image builds
92 - name: Set up QEMU
93 uses: docker/setup-qemu-action@v2
96 - name: Set up Docker Buildx
97 uses: docker/setup-buildx-action@v2
100 - name: Setup job specific variables
102 set -eou pipefail
106 …echo "PYTORCH_VERSION=$(python3 .github/scripts/generate_pytorch_version.py --no-build-suffix)" >>…
107 - name: Setup test specific variables
110 if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+$ ]]; then
112 echo "DOCKER_IMAGE=pytorch-test";
114 echo "TRITON_VERSION=$(cut -f 1 .ci/docker/triton_version.txt)";
117 - name: Setup nightly specific variables
121 echo "DOCKER_IMAGE=pytorch-nightly";
123 …echo "TRITON_VERSION=$(cut -f 1 .ci/docker/triton_version.txt)+$(cut -c -10 .ci/docker/ci_commit_p…
125 - name: Run docker build / push
126 # WITH_PUSH is used here to determine whether or not to add the --push flag
128 make -f docker.Makefile "${BUILD_IMAGE_TYPE}-image"
129 - name: Push nightly tags
132 … PYTORCH_DOCKER_TAG="${PYTORCH_VERSION}-cuda${CUDA_VERSION_SHORT}-cudnn${CUDNN_VERSION}-runtime"
133 CUDA_SUFFIX="-cu${CUDA_VERSION}"
134 … PYTORCH_NIGHTLY_COMMIT=$(docker run ghcr.io/pytorch/pytorch-nightly:"${PYTORCH_DOCKER_TAG}" \
135 … python -c 'import torch; print(torch.version.git_version[:7],end="")')
137 docker tag ghcr.io/pytorch/pytorch-nightly:"${PYTORCH_DOCKER_TAG}" \
138 ghcr.io/pytorch/pytorch-nightly:"${PYTORCH_NIGHTLY_COMMIT}${CUDA_SUFFIX}"
140 docker push ghcr.io/pytorch/pytorch-nightly:"${PYTORCH_NIGHTLY_COMMIT}${CUDA_SUFFIX}"
144 docker tag ghcr.io/pytorch/pytorch-nightly:"${PYTORCH_NIGHTLY_COMMIT}${CUDA_SUFFIX}" \
145 ghcr.io/pytorch/pytorch-nightly:latest
146 docker push ghcr.io/pytorch/pytorch-nightly:latest
149 - name: Teardown Linux
150 uses: pytorch/test-infra/.github/actions/teardown-linux@release/2.4
155 uses: pytorch/builder/.github/workflows/validate-docker-images.yml@release/2.4