File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 2727 - name : Checkout repository
2828 uses : actions/checkout@v3
2929
30+ - name : Fix Slashes Repo Name
31+ id : fix_slashes
32+ run : |
33+ export container_name=$(echo ${{ env.CONTAINER_NAME }} | sed 's|/|_|g')
34+ echo ::set-output name=container_name::$container_name
35+
3036 - name : Log in to the Container registry
3137 uses : docker/login-action@v2
3238 with :
3743 # Automatically detect TensorRT and cuDNN default versions for Torch-TRT build
3844 - name : Build Docker image
3945 env :
40- DOCKER_TAG : ${{ env.DOCKER_REGISTRY }}/${{ env.CONTAINER_NAME }}
46+ DOCKER_TAG : ${{ env.DOCKER_REGISTRY }}/${{ steps.fix_slashes.outputs.container_name }}
4147 run : |
4248 python3 -m pip install pyyaml
4349 TRT_VERSION=$(python3 -c "import versions; versions.tensorrt_version()")
4955
5056 - name : Push Docker image
5157 env :
52- DOCKER_URL : ${{ env.DOCKER_REGISTRY }}/${{ env.CONTAINER_NAME }}
58+ DOCKER_URL : ${{ env.DOCKER_REGISTRY }}/${{ steps.fix_slashes.outputs.container_name }}
5359 run : docker push $DOCKER_URL
5460
5561 # Clean up all untagged containers in registry
You can’t perform that action at this time.
0 commit comments