feat: 接入共享边缘单链自动交付

This commit is contained in:
Codex
2026-07-15 15:16:05 +02:00
parent 76511eabfb
commit 1b423f2b9b
8 changed files with 696 additions and 1 deletions
@@ -54,3 +54,26 @@ spec:
volumeMounts:
- name: workspace
mountPath: /workspace
- name: apply-public-edge
image: 127.0.0.1:5000/hwlab/hwlab-ci-node-tools:node22-alpine-bun-v1
imagePullPolicy: IfNotPresent
workingDir: /workspace/source
env:
- name: SOURCE_COMMIT
value: "{{revision}}"
- name: UNIDESK_SSH_CLIENT_TOKEN
valueFrom:
secretKeyRef:
name: public-edge-trans
key: UNIDESK_SSH_CLIENT_TOKEN
script: |
#!/bin/sh
set -eu
test "$(git rev-parse HEAD)" = "$SOURCE_COMMIT"
exec bun scripts/native/cicd/deliver-platform-infra-public-edge.mjs \
--source-root /workspace/source \
--source-commit "$SOURCE_COMMIT" \
--confirm
volumeMounts:
- name: workspace
mountPath: /workspace