fix(cd): 新增 kubeconfig 驗證步驟 + 修正 PATH

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-03-24 13:15:17 +08:00
parent 8159d22db9
commit 181d62a29e
2 changed files with 16 additions and 6 deletions

View File

@@ -106,6 +106,14 @@ jobs:
RUN_ID=${{ github.run_id }}
echo "tag=${SHA}-${RUN_ID}" >> $GITHUB_OUTPUT
- name: Verify Kubeconfig
run: |
export PATH="$HOME/.local/bin:$PATH"
echo "Checking kubeconfig..."
kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}'
echo ""
kubectl cluster-info
- name: Deploy with Kustomize
run: |
export PATH="$HOME/.local/bin:$PATH"
@@ -117,6 +125,7 @@ jobs:
- name: Wait for rollout
run: |
export PATH="$HOME/.local/bin:$PATH"
kubectl rollout status deployment/awoooi-web -n awoooi-prod --timeout=300s
kubectl rollout status deployment/awoooi-api -n awoooi-prod --timeout=300s