cicd
All checks were successful
Build and Deploy / deploy (push) Successful in 45s

This commit is contained in:
xiaolipro 2026-09-22 15:50:02 +08:00
parent 3f3da5bd37
commit 9016dc4116

View File

@ -48,7 +48,7 @@ jobs:
case "$TARGET" in case "$TARGET" in
test) test)
export KUBECONFIG=/root/.kube/k3s-test.yaml export KUBECONFIG=/etc/rancher/k3s/k3s-test.yaml
export NAMESPACE=test export NAMESPACE=test
export MANIFEST_ROOT=/data/k3s-test export MANIFEST_ROOT=/data/k3s-test
;; ;;
@ -58,6 +58,10 @@ jobs:
export MANIFEST_ROOT=/data/k3s export MANIFEST_ROOT=/data/k3s
;; ;;
esac esac
test -f "$KUBECONFIG" if [[ ! -f "$KUBECONFIG" ]]; then
echo "FAIL: missing KUBECONFIG=$KUBECONFIG host=$(hostname) uid=$(id -u)"
ls -la /etc/rancher/k3s/ /root/.kube/ 2>/dev/null || true
exit 1
fi
./scripts/ci-deploy-api.sh "${{ env.DEPLOY_NAME }}" \ ./scripts/ci-deploy-api.sh "${{ env.DEPLOY_NAME }}" \
"${{ env.CONTAINER_NAME }}" "$IMG" "${{ env.CONTAINER_NAME }}" "$IMG"