Skip to content

Commit

Permalink
deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
gs-olive committed Aug 1, 2023
1 parent 3d47aea commit fc27c13
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/docker_builder.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: 'Torch-TRT Docker Build'
name: 'Torch-TensorRT Docker Build'

# Apply workflow only to main branch
# on:
# push:
# branches: [ main ]
on:
push:
branches: [ main ]
pull_request:
types: [opened, synchronize, ready_for_review, review_requested, reopened]


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

jobs:
Expand All @@ -18,7 +22,8 @@ jobs:
# Define key environment variables
env:
DOCKER_REGISTRY: ghcr.io/pytorch/tensorrt
CONTAINER_NAME: torch_tensorrt_main:latest
CONTAINER_NAME: torch_tensorrt:main
#${{ github.ref_name }}
TENSORRT_VERSION: 8.6
CUDNN_VERSION: 8.8

Expand All @@ -42,3 +47,11 @@ jobs:
env:
DOCKER_URL: ${{ env.DOCKER_REGISTRY }}/${{ env.CONTAINER_NAME }}
run: docker push $DOCKER_URL

- name: Package Cleanup
uses: actions/delete-package-versions@v4
with:
package-name: "tensorrt/torch_tensorrt"
package-type: container
min-versions-to-keep: 0
delete-only-untagged-versions: True

0 comments on commit fc27c13

Please sign in to comment.