Skip to content

Commit a6e85ee

Browse files
committed
Use the right Docker image for non-main commits
Signed-off-by: Huy Do <huydhn@gmail.com>
1 parent 046a22c commit a6e85ee

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/vllm-benchmark.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,18 @@ jobs:
139139
140140
- name: Set Docker registry
141141
shell: bash
142+
env:
143+
HEAD_BRANCH: ${{ inputs.vllm_branch || 'main' }}
142144
run: |
143-
DOCKER_IMAGE_PREFIX=public.ecr.aws/q9t5s3a7/vllm-ci-postmerge-repo
145+
set -eux
146+
147+
# Mimic the logic from vllm ci-infra test template
148+
if [[ "${HEAD_BRANCH}" == "main" ]]; then
149+
DOCKER_IMAGE_PREFIX=public.ecr.aws/q9t5s3a7/vllm-ci-postmerge-repo
150+
else
151+
DOCKER_IMAGE_PREFIX=public.ecr.aws/q9t5s3a7/vllm-ci-test-repo
152+
fi
153+
144154
DOCKER_IMAGE_SUFFIX=""
145155
if [[ "${DEVICE_NAME}" == "rocm" ]]; then
146156
DOCKER_IMAGE_PREFIX=docker.io/rocm/vllm-ci

0 commit comments

Comments
 (0)