fix: stabilize sentinel pac workspace
Pipelines as Code CI / hwlab-web-probe-sentinel-jd01- Failed

This commit is contained in:
Codex
2026-07-05 16:10:05 +00:00
parent 0704c87004
commit c628d425a5
+4 -4
View File
@@ -26,7 +26,7 @@ spec:
- name: sentinel-publish
image: 127.0.0.1:5000/hwlab/hwlab-ci-node-tools:node22-alpine-bun-v1
imagePullPolicy: IfNotPresent
workingDir: /workspace/source
workingDir: /workspace
env:
- name: GIT_READ_URL
value: http://gitea-http.devops-infra.svc.cluster.local:3000/mirrors/pikasTech-unidesk.git
@@ -37,9 +37,9 @@ spec:
script: |
#!/bin/sh
set -eu
rm -rf /workspace/source
git clone --filter=blob:none --no-checkout "$GIT_READ_URL" /workspace/source
cd /workspace/source
rm -rf source
git clone --filter=blob:none --no-checkout "$GIT_READ_URL" source
cd source
git fetch --depth=1 --filter=blob:none origin "+$SOURCE_STAGE_REF:refs/remotes/origin/unidesk-source-snapshot"
git checkout --detach "$SOURCE_COMMIT"
bun scripts/cli.ts web-probe sentinel publish-current \