fix cicd fail
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Has been cancelled

This commit is contained in:
repair-agent 2026-04-02 15:43:41 +08:00
parent eeb27514bb
commit b2a2b1079f
3 changed files with 4 additions and 3 deletions

View File

@ -80,7 +80,8 @@ jobs:
- name: Setup Kubectl
run: |
curl -LO "https://files.m.daocloud.io/dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl" || \
curl -LO "https://mirrors.aliyun.com/kubernetes/kubectl/v1.28.2/bin/linux/amd64/kubectl"
chmod +x kubectl
mv kubectl /usr/local/bin/

View File

@ -5,7 +5,7 @@ WORKDIR /app
# Install dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
# Production stage
FROM python:3.12-slim AS production-stage

View File

@ -5,7 +5,7 @@ WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm config set registry https://registry.npmmirror.com && npm install
COPY . .