Skip to content

Commit fc27c13

Browse files
committed
deletion
1 parent 3d47aea commit fc27c13

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/docker_builder.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
name: 'Torch-TRT Docker Build'
1+
name: 'Torch-TensorRT Docker Build'
22

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

812
# If pushes to main are made in rapid succession,
913
# cancel existing docker builds and use newer commits
1014
concurrency:
11-
group: ${{ github.workflow }}-${{ github.ref }}
15+
group: ${{ github.workflow }}-${{ github.ref_name }}
1216
cancel-in-progress: true
1317

1418
jobs:
@@ -18,7 +22,8 @@ jobs:
1822
# Define key environment variables
1923
env:
2024
DOCKER_REGISTRY: ghcr.io/pytorch/tensorrt
21-
CONTAINER_NAME: torch_tensorrt_main:latest
25+
CONTAINER_NAME: torch_tensorrt:main
26+
#${{ github.ref_name }}
2227
TENSORRT_VERSION: 8.6
2328
CUDNN_VERSION: 8.8
2429

@@ -42,3 +47,11 @@ jobs:
4247
env:
4348
DOCKER_URL: ${{ env.DOCKER_REGISTRY }}/${{ env.CONTAINER_NAME }}
4449
run: docker push $DOCKER_URL
50+
51+
- name: Package Cleanup
52+
uses: actions/delete-package-versions@v4
53+
with:
54+
package-name: "tensorrt/torch_tensorrt"
55+
package-type: container
56+
min-versions-to-keep: 0
57+
delete-only-untagged-versions: True

0 commit comments

Comments
 (0)