Compare commits

..

2 Commits

Author SHA1 Message Date
han0
9b1a76d72f Merge remote-tracking branch 'gitea/test' into test
Some checks failed
ci / build (push) Has been cancelled
2025-10-13 15:44:26 +08:00
han0
6ebdc7dd9f fix: ci 2025-10-13 15:43:49 +08:00
2 changed files with 5 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ jobs:
build:
container:
image: python:3.7.16
image: python:3.7.17
steps:
- name: Checkout
@@ -24,8 +24,8 @@ jobs:
- name: Build
run: |
mkdir dist
PYTHONUSERBASE=$CI_PROJECT_DIR/home pip install --upgrade pip -i https://mirror.aliyun.com/pypi/simple --user
PYTHONUSERBASE=$CI_PROJECT_DIR/home pip install -r ./requirements.txt -i https://mirror.aliyun.com/pypi/simple --user
PYTHONUSERBASE=$CI_PROJECT_DIR/home pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple --user
PYTHONUSERBASE=$CI_PROJECT_DIR/home pip install -r ./requirements.txt -i https://mirrors.aliyun.com/pypi/simple --user
rsync -ha ./ ./dist --exclude=dist --exclude=.git --delete
- name: Deploy

View File

@@ -1,8 +1,7 @@
version: '2.1'
services:
www:
image: python:3.7.16-material-api
build: ./docker
image: python:3.7.17
restart: always
environment:
- SERVICE_NAME=material-api
@@ -16,7 +15,7 @@ services:
- ./web:/usr/src/app
- ./home:/root/.local
- ./logs:/logs
- /opt/files/material_api:/usr/src/app/files
- ./files:/usr/src/app/files
working_dir: /usr/src/app/
ports:
- 7072:7072