From 0ac5fe74ef4ebfad8138d6f862cdef11a7bbd02e Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 3 Apr 2026 15:23:53 +1000 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=BB=D0=B6=D0=BD=D0=BE=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 57 ++++++++++++++++++++++++------------------------------ 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/.drone.yml b/.drone.yml index b5b6417..9de3157 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,11 +3,6 @@ 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: @@ -15,42 +10,40 @@ steps: - pip install pytest pytest-asyncio - pytest tests/ -v || true - - name: docker-build - image: plugins/docker - settings: - repo: gitea.allowlgroup.ru/allowlgroup/gptchat - registry: https://gitea.allowlgroup.ru - insecure: false - tags: - - latest - - ${DRONE_COMMIT_SHA:0:8} - username: - from_secret: docker_username - password: - from_secret: docker_password - context: . - dockerfile: Dockerfile + - name: build-image + image: docker:latest + volumes: + - name: docker-socket + path: /var/run + commands: + - docker build -t gptchat:latest . when: branch: - main event: - push - - custom - name: deploy - image: appleboy/drone-ssh - settings: - host: gitea.allowlgroup.ru - username: - from_secret: ssh_username - key: - from_secret: ssh_private_key - port: 22 - script: - - ... + image: docker:latest + volumes: + - name: docker-socket + path: /var/run + commands: + - docker stop gptchat || true + - docker rm gptchat || true + - docker run -d \ + --name gptchat \ + -p 8484:8484 \ + -v $(pwd)/data:/app/data \ + --restart unless-stopped \ + gptchat:latest when: branch: - main event: - push - - custom + +volumes: + - name: docker-socket + host: + path: /var/run/docker.sock \ No newline at end of file