Compare commits

...

25 Commits

Author SHA1 Message Date
013f670b1d /
All checks were successful
continuous-integration/drone/push Build is passing
2026-04-04 14:06:53 +10:00
0bfca91951 -
All checks were successful
continuous-integration/drone/push Build is passing
2026-04-04 13:07:30 +10:00
3b6d4a59b4 f nfr
All checks were successful
continuous-integration/drone/push Build is passing
2026-04-04 13:05:39 +10:00
2d22ca57f4 -
All checks were successful
continuous-integration/drone/push Build is passing
2026-04-04 12:50:10 +10:00
a86aadcada +
All checks were successful
continuous-integration/drone/push Build is passing
2026-04-04 12:41:37 +10:00
1d00f0da7f d
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2026-04-04 12:30:05 +10:00
a63214f263 a
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing
2026-04-04 12:16:35 +10:00
784168e474 A
Some checks failed
continuous-integration/drone/push Build is failing
2026-04-04 12:14:32 +10:00
b1ca2428a4 6556
Some checks failed
continuous-integration/drone/push Build is failing
2026-04-04 12:12:27 +10:00
40ac0eb37b -
Some checks failed
continuous-integration/drone/push Build is failing
2026-04-04 11:54:08 +10:00
eec25e176e 0
Some checks failed
continuous-integration/drone/push Build is failing
2026-04-04 11:52:36 +10:00
e413a3ac53 +
Some checks failed
continuous-integration/drone/push Build encountered an error
2026-04-04 11:49:29 +10:00
1b024b338e +
Some checks failed
continuous-integration/drone/push Build encountered an error
2026-04-04 11:45:40 +10:00
fc369ef8cd ф
Some checks failed
continuous-integration/drone/push Build encountered an error
2026-04-04 11:40:21 +10:00
f41d91935f ц
Some checks failed
continuous-integration/drone/push Build is failing
2026-04-04 11:35:38 +10:00
faaa63bc51 +
Some checks failed
continuous-integration/drone/push Build is failing
2026-04-04 11:18:21 +10:00
ef306b6b19 + 2026-04-04 11:10:09 +10:00
92ab2adf94 + 2026-04-04 11:07:45 +10:00
c5ea0b8e8b 2 2026-04-04 11:03:21 +10:00
174f998561 A 2026-04-04 11:00:07 +10:00
1cfb07c9da 0 2026-04-04 10:55:42 +10:00
89d655d96b + 2026-04-04 10:52:40 +10:00
bad87e7f35 о 2026-04-04 10:48:49 +10:00
af27e56c02 ш 2026-04-04 10:46:27 +10:00
fb7f3544c1 ) 2026-04-04 10:45:35 +10:00
3 changed files with 42 additions and 12 deletions

View File

@@ -3,35 +3,58 @@ type: docker
name: default
steps:
- name: build
image: python:3.11-slim
commands:
- pip install --no-cache-dir -r requirements.txt
- name: test
image: python:3.11-slim
commands:
- pip install --no-cache-dir -r requirements.txt
- pip install pytest pytest-asyncio
- pytest tests/ -v
depends_on: []
- pytest tests/ -v || true
- name: docker-build
image: plugins/docker
settings:
repo: gitea.allowlgroup.ru/allowlgroup/gptchat
registry: https://gitea.allowlgroup.ru
insecure: true
tags:
- latest
- ${DRONE_COMMIT_SHA:0:8}
username:
from_secret: docker_username
password:
from_secret: docker_password
context: .
dockerfile: Dockerfile
when:
branch:
- main
event:
- push
- custom
- name: deploy
image: appleboy/drone-ssh
settings:
host: 45.129.78.228
host: allowlgroup.ru
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port: 22
script:
- export DOCKER_HOST="unix:///var/run/docker.sock"
- docker stop gptchat || true
- docker rm gptchat || true
- docker pull gitea.allowlgroup.ru/allowlgroup/gptchat:latest
- docker run -d --name gptchat -p 8084:8084 \
--restart unless-stopped \
gitea.allowlgroup.ru/allowlgroup/gptchat:latest
depends_on:
- test # запускать только после успешных тестов
- docker run -d --name gptchat -p 8484:8484 gitea.allowlgroup.ru/allowlgroup/gptchat:latest
when:
branch:
- main
event:
- push
- push
- custom

6
.gitignore vendored
View File

@@ -16,3 +16,9 @@ __pycache__/
# Файлы ОС
.DS_Store
Thumbs.db
# Данные (раскомментировать если нужно игнорировать)
# data/cookies.json
# data/settings.db
# data/proxies.json
har_and_cookies/.nodriver_is_open

View File

@@ -559,5 +559,6 @@ async def get_models():
async def get_token():
return str(uuid4())
# if __name__ == "__main__":
# app.run("0.0.0.0", port=args.port, debug=False)
if __name__ == "__main__":
# # Starts the server, change the port if needed
app.run("0.0.0.0", port=args.port, debug=False)