From b3f33aaa0f378033104845ebb14faf35f2bc1580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=B8=80=E4=B9=8B?= Date: Fri, 13 Sep 2024 11:12:44 +0800 Subject: [PATCH] ci: test ci --- .gitea/workflows/build.yml | 1 + Dockerfile | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 32679256..f2b3a099 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - test # paths: # - version.py diff --git a/Dockerfile b/Dockerfile index c549c336..c318c20f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,9 @@ ENV LANG="C.UTF-8" \ AUTH_SITE="iyuu" \ IYUU_SIGN="" WORKDIR "/app" + +RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources + RUN apt-get update -y \ && apt-get upgrade -y \ && apt-get -y install \ @@ -50,6 +53,9 @@ RUN apt-get update -y \ /var/lib/apt/lists/* \ /var/tmp/* COPY requirements.txt requirements.txt + +RUN pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple + RUN apt-get update -y \ && apt-get install -y build-essential \ && pip install --upgrade pip \