0
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-04-04 11:52:36 +10:00
parent e413a3ac53
commit eec25e176e

View File

@@ -4,36 +4,58 @@ type: docker
name: default name: default
steps: steps:
- name: build
- name: build image: python:3.11-slim
image: docker:20.10
privileged: true
commands: commands:
- docker info - pip install --no-cache-dir -r requirements.txt
- docker build -t gitea.allowlgroup.ru/allowlgroup/gptchat:latest .
- docker save gitea.allowlgroup.ru/allowlgroup/gptchat:latest -o gptchat.tar
- name: deploy - name: test
image: python:3.11-slim
commands:
- pip install --no-cache-dir -r requirements.txt
- 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: 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 image: appleboy/drone-ssh
settings: settings:
host: gitea.allowlgroup.ru host: 127.0.0.1
username: username:
from_secret: ssh_username from_secret: ssh_username
password: password:
from_secret: ssh_password from_secret: ssh_password
port: 22 port: 22
commands: script:
- scp gptchat.tar /tmp/gptchat.tar - export DOCKER_HOST="unix:///var/run/docker.sock"
- docker load -i /tmp/gptchat.tar && - docker stop gptchat || true
docker stop gptchat || true && - docker rm gptchat || true
docker rm gptchat || true && - docker pull gitea.allowlgroup.ru/allowlgroup/gptchat:latest
docker run -d --name gptchat -p 8484:8484 gitea.allowlgroup.ru/allowlgroup/gptchat:latest - docker run -d --name gptchat -p 8484:8484 gitea.allowlgroup.ru/allowlgroup/gptchat:latest
when:
services: branch:
- main
- name: docker event:
- push
image: docker:dind - custom
privileged: true