From b2a2b1079f94949f846aea1dd3d5d4b6a88dc927 Mon Sep 17 00:00:00 2001 From: repair-agent Date: Thu, 2 Apr 2026 15:43:41 +0800 Subject: [PATCH] fix cicd fail --- .gitea/workflows/deploy.yaml | 3 ++- Dockerfile | 2 +- web/Dockerfile | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ca9e8c1..98f352c 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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/ diff --git a/Dockerfile b/Dockerfile index ca2378b..0c76ee9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/web/Dockerfile b/web/Dockerfile index 59fc239..b7b25f7 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm config set registry https://registry.npmmirror.com && npm install COPY . .