fix: host模式下添加git clone步骤获取源代码
This commit is contained in:
@@ -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 -
|
||||
|
||||
|
||||
Reference in New Issue
Block a user