fix: ci
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latests
|
||||
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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user