Skip to content

Commit

Permalink
Fix/docker repo url3 (#3297)
Browse files Browse the repository at this point in the history
* Make repo url work in merge queue ci, which is not a pull request....

* dump context
  • Loading branch information
mreso authored Aug 22, 2024
1 parent 0901d4b commit 87e9c35
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/docker-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Dump github context
run: echo "$GITHUB_CONTEXT"
shell: bash
env:
GITHUB_CONTEXT: ${{ toJson(github) }}

- name: Test build_image.sh script with custom tagging and gpu flag
working-directory: docker
Expand All @@ -39,7 +44,10 @@ jobs:
working-directory: docker
run: |
IMAGE_TAG=test-image-${{ matrix.python-version }}
REPO_URL=${{ github.event.pull_request.head.repo.clone_url }}
REPO_URL="${{ github.event.pull_request.head.repo.clone_url }}"
if [[ -z "${REPO_URL}" ]]; then
REPO_URL="https://github.com/pytorch/serve.git"
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 87e9c35

Please sign in to comment.