fix: host模式下添加git clone步骤获取源代码

This commit is contained in:
2025-11-25 22:32:39 +08:00
parent 374459fd03
commit 4a31276ac5
+10
View File
@@ -32,6 +32,11 @@ jobs:
steps:
- name: 📦 构建 ${{ matrix.service }} 镜像
run: |
echo "📥 克隆代码..."
rm -rf /tmp/workspace
git clone --depth=1 http://gitea3:3000/gao/claude-stock.git /tmp/workspace
cd /tmp/workspace
echo "🏗️ 构建 ${{ matrix.service }} 镜像..."
cd ${{ matrix.service }}
@@ -67,6 +72,11 @@ jobs:
steps:
- name: 🚀 部署到 Kubernetes
run: |
echo "📥 克隆代码..."
rm -rf /tmp/workspace
git clone --depth=1 http://gitea3:3000/gao/claude-stock.git /tmp/workspace
cd /tmp/workspace
echo "📋 创建 namespace..."
kubectl create namespace ${{ env.K8S_NAMESPACE }} --dry-run=client -o yaml | kubectl apply -f -