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 28
28
- name : Checkout repository
29
29
uses : actions/checkout@v3
30
30
31
+ - name : Fix Slashes Repo Name
32
+ id : fix_slashes
33
+ run : |
34
+ export container_name=$(echo ${{ env.CONTAINER_NAME }} | sed 's|/|_|g')
35
+ echo ::set-output name=container_name::$container_name
36
+
31
37
- name : Log in to the Container registry
32
38
uses : docker/login-action@v2
33
39
with :
38
44
# Automatically detect TensorRT and cuDNN default versions for Torch-TRT build
39
45
- name : Build Docker image
40
46
env :
41
- DOCKER_TAG : ${{ env.DOCKER_REGISTRY }}/${{ env.CONTAINER_NAME }}
47
+ DOCKER_TAG : ${{ env.DOCKER_REGISTRY }}/${{ steps.fix_slashes.outputs.container_name }}
42
48
run : |
43
49
python3 -m pip install pyyaml
44
50
TRT_VERSION=$(python3 -c "import versions; versions.tensorrt_version()")
50
56
51
57
- name : Push Docker image
52
58
env :
53
- DOCKER_URL : ${{ env.DOCKER_REGISTRY }}/${{ env.CONTAINER_NAME }}
59
+ DOCKER_URL : ${{ env.DOCKER_REGISTRY }}/${{ steps.fix_slashes.outputs.container_name }}
54
60
run : docker push $DOCKER_URL
55
61
56
62
# Clean up all untagged containers in registry
You can’t perform that action at this time.
0 commit comments