Merge pull request #9 from pikasTech/commander-v01-cicd-bootstrap

fix: 稳定 v0.1 Tekton 首轮构建
This commit is contained in:
Lyon
2026-05-29 11:38:39 +08:00
committed by GitHub
+4 -2
View File
@@ -77,7 +77,9 @@ spec:
bun install bun install
bun run check bun run check
bun scripts/agentrun-gitops-render.ts --out /tmp/agentrun-gitops-render-check --source-commit "$(params.revision)" --check bun scripts/agentrun-gitops-render.ts --out /tmp/agentrun-gitops-render-check --source-commit "$(params.revision)" --check
bun run self-test AGENTRUN_SELFTEST_CODEX_COMMAND="$(command -v bun)" \
AGENTRUN_SELFTEST_CODEX_ARGS="[\"$PWD/src/selftest/fake-codex-app-server.ts\"]" \
bun run self-test
params: params:
- name: git-url - name: git-url
value: $(params.git-url) value: $(params.git-url)
@@ -165,7 +167,7 @@ spec:
--local context=. \ --local context=. \
--local dockerfile=deploy/container \ --local dockerfile=deploy/container \
--opt filename=Containerfile \ --opt filename=Containerfile \
--output type=image,name="$image",push=true --output type=image,name="$image",push=true,registry.insecure=true
digest="$(curl -fsSI "http://127.0.0.1:5000/v2/agentrun/agentrun-mgr/manifests/$(params.revision)" | awk -F': ' 'tolower($1)=="docker-content-digest" {gsub(/\r/,"",$2); print $2; exit}')" digest="$(curl -fsSI "http://127.0.0.1:5000/v2/agentrun/agentrun-mgr/manifests/$(params.revision)" | awk -F': ' 'tolower($1)=="docker-content-digest" {gsub(/\r/,"",$2); print $2; exit}')"
test -n "$digest" test -n "$digest"
printf '%s' "$image" > /tekton/results/image printf '%s' "$image" > /tekton/results/image