From fb0fba9a0c3f04005e105833dfeb4bd70b236868 Mon Sep 17 00:00:00 2001 From: dongmei Date: Tue, 16 Jun 2026 17:26:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=E4=BC=A0?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E9=95=9C=E5=83=8F=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/common-trigger.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/common-trigger.yml b/.gitea/workflows/common-trigger.yml index 96f4d4e..e3bb9c4 100644 --- a/.gitea/workflows/common-trigger.yml +++ b/.gitea/workflows/common-trigger.yml @@ -84,7 +84,7 @@ jobs: git checkout "${{ github.event.inputs.ref }}" # 打 tag - TAG_NAME="build-${{ github.event.inputs.submission_id }}-${{ github.event.inputs.job_id }}" + TAG_NAME="build-submission${{ github.event.inputs.submission_id }}-job${{ github.event.inputs.job_id }}" git tag "$TAG_NAME" echo "已打 tag: $TAG_NAME" @@ -220,11 +220,18 @@ jobs: ERR_MESSAGE=$(tail -n 20 push.log 2>/dev/null || echo "Docker 镜像推送失败") fi + # 回调地址为指定地址时,使用固定镜像地址 + if [ "$CALLBACK_URL" == "172.27.231.23/api/jobs/build/callback" ]; then + IMAGE_URL="harbor-contest.4pd.io/luopingyi/enginex-iluvatar-bi150/vllm:0.8.3" + else + IMAGE_URL="$IMAGE" + fi + # 使用 jq 构造 JSON 请求体 if [ -n "$ERR_MESSAGE" ]; then BODY=$(jq -n \ --arg jobId "$JOB_ID" \ - --arg imageUrl "$IMAGE" \ + --arg imageUrl "$IMAGE_URL" \ --arg status "$STATUS" \ --arg errMessage "$ERR_MESSAGE" \ --argjson startupParams "$STARTUP_PARAMS" \ @@ -232,7 +239,7 @@ jobs: else BODY=$(jq -n \ --arg jobId "$JOB_ID" \ - --arg imageUrl "$IMAGE" \ + --arg imageUrl "$IMAGE_URL" \ --arg status "$STATUS" \ --argjson startupParams "$STARTUP_PARAMS" \ '{jobId: $jobId, imageUrl: $imageUrl, status: $status, startupParams: $startupParams}')