Files
gptchat/.drone.yml
admin f41d91935f
Some checks failed
continuous-integration/drone/push Build is failing
ц
2026-04-04 11:35:38 +10:00

34 lines
765 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: build
image: python:3.11-slim
commands:
- pip install --no-cache-dir -r requirements.txt
- name: deploy
image: appleboy/drone-ssh
settings:
host: 127.0.0.1
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 8484:8484 gitea.allowlgroup.ru/allowlgroup/gptchat:latest
when:
branch:
- main
event:
- push
- custom