This commit is contained in:
2026-04-03 16:43:14 +10:00
parent ebc73b608d
commit f9fc9931f1

View File

@@ -11,20 +11,14 @@ steps:
- pytest tests/ -v || true - pytest tests/ -v || true
- name: deploy - name: deploy
image: appleboy/drone-ssh image: docker:cli
settings: environment:
host: 127.0.0.1 DOCKER_HOST: tcp://127.0.0.1:2375
username: commands:
from_secret: ssh_username - docker build -t gptchat:latest .
password: - docker stop gptchat || true
from_secret: ssh_password - docker rm gptchat || true
port: 22 - docker run -d --name gptchat -p 8484:8484 -v /opt/gptchat/data:/app/data --restart unless-stopped gptchat:latest
script:
- mkdir -p /opt/gptchat
- cd /opt/gptchat && docker build -t gptchat:latest .
- docker stop gptchat || true
- docker rm gptchat || true
- docker run -d --name gptchat -p 8484:8484 -v /opt/gptchat/data:/app/data --restart unless-stopped gptchat:latest
when: when:
branch: branch:
- main - main