Skip to content

Commit b56d5c0

Browse files
committed
small fix
1 parent 32701b5 commit b56d5c0

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/docker_builder.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: 'Torch-TensorRT Docker Build'
22

33
# Apply workflow only to main branch
44
on:
5-
push:
6-
branches:
7-
- main
8-
- nightly
5+
pull_request:
6+
types: [opened, synchronize, ready_for_review, review_requested, reopened]
7+
# push:
8+
# branches:
9+
# - main
10+
# - nightly
911

1012
# If pushes to main are made in rapid succession,
1113
# cancel existing docker builds and use newer commits
@@ -21,7 +23,8 @@ jobs:
2123
# Container name is of the form torch_tensorrt:<branch_name>
2224
env:
2325
DOCKER_REGISTRY: ghcr.io/pytorch/tensorrt
24-
CONTAINER_NAME: torch_tensorrt:${{ github.ref_name }}
26+
CONTAINER_NAME: torch_tensorrt:main
27+
#${{ github.ref_name }}
2528

2629
steps:
2730
- name: Checkout repository
@@ -39,6 +42,7 @@ jobs:
3942
env:
4043
DOCKER_TAG: ${{ env.DOCKER_REGISTRY }}/${{ env.CONTAINER_NAME }}
4144
run: |
45+
python3 -m pip install pyyaml
4246
TRT_VERSION=$(python3 -c "import versions; versions.tensorrt_version()")
4347
echo "TRT VERSION = ${TRT_VERSION}"
4448
CUDNN_VERSION=$(python3 -c "import versions; versions.cudnn_version()")

0 commit comments

Comments
 (0)