Skip to content

Commit

Permalink
Use env.FORK for CI like pytorch#3266 did
Browse files Browse the repository at this point in the history
  • Loading branch information
mreso committed Aug 21, 2024
1 parent d1ed4f1 commit 533d122
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ jobs:
working-directory: docker
run: |
IMAGE_TAG=test-image-${{ matrix.python-version }}
REPO_URL=$(echo ${{ github.repositoryUrl }} | sed 's/^git:\/\//https:\/\//')
if [[ -z "${{ env.FORK }}" ]]; then
REPO_URL="https://github.com/pytorch/serve.git"
else
REPO_URL="https://github.com/${{ env.FORK }}"
fi
./build_image.sh -py "${{ matrix.python-version }}" -t "${IMAGE_TAG}" -b "${{ steps.branch-name.outputs.GITHUB_BRANCH }}" -repo ${REPO_URL} -s
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 533d122

Please sign in to comment.