Skip to content

Commit 738c1fd

Browse files
committed
Fix build image
Signed-off-by: Charlie Truong <chtruong@nvidia.com>
1 parent d1101e9 commit 738c1fd

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/build-trtllm-vllm-image.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ on:
6262
default: "13.0.88-1"
6363

6464
env:
65-
container-registry: nemoci.azurecr.io
65+
container-registry: ${{ vars.container-registry || 'nemoci.azurecr.io' }}
6666

6767
jobs:
6868
pre-flight:
@@ -111,6 +111,11 @@ jobs:
111111
- name: Set up Docker Buildx
112112
uses: docker/setup-buildx-action@v3
113113

114+
- name: Set truncated commit hash
115+
env:
116+
TRTLLM_COMMIT: ${{ inputs.trtllm_commit }}
117+
run: echo "TRTLLM_COMMIT_SHORT=${TRTLLM_COMMIT:0:7}" >> $GITHUB_ENV
118+
114119
- name: Build and push
115120
uses: docker/build-push-action@v5
116121
with:
@@ -128,9 +133,9 @@ jobs:
128133
CUBLAS_VER=${{ inputs.cublas_version }}
129134
NVRTC_VER=${{ inputs.nvrtc_version }}
130135
cache-from: |
131-
type=registry,ref=${{ env.container-registry }}/export-deploy-trtllm-vllm:${{ inputs.base_image_tag }}-${{ substring(inputs.trtllm_commit, 0, 7) }}-${{ inputs.vllm_version }}-buildcache,mode=max
136+
type=registry,ref=${{ env.container-registry }}/export-deploy-trtllm-vllm:${{ inputs.base_image_tag }}-${{ env.TRTLLM_COMMIT_SHORT }}-${{ inputs.vllm_version }}-buildcache,mode=max
132137
cache-to: |
133-
type=registry,ref=${{ env.container-registry }}/export-deploy-trtllm-vllm:${{ inputs.base_image_tag }}-${{ substring(inputs.trtllm_commit, 0, 7) }}-${{ inputs.vllm_version }}-buildcache,mode=max
138+
type=registry,ref=${{ env.container-registry }}/export-deploy-trtllm-vllm:${{ inputs.base_image_tag }}-${{ env.TRTLLM_COMMIT_SHORT }}-${{ inputs.vllm_version }}-buildcache,mode=max
134139
no-cache: false
135140
tags: |
136-
${{ env.container-registry }}/export-deploy-trtllm-vllm:${{ inputs.base_image_tag }}-${{ substring(inputs.trtllm_commit, 0, 7) }}-${{ inputs.vllm_version }}
141+
${{ env.container-registry }}/export-deploy-trtllm-vllm:${{ inputs.base_image_tag }}-${{ env.TRTLLM_COMMIT_SHORT }}-${{ inputs.vllm_version }}

0 commit comments

Comments
 (0)