tcp
This commit is contained in:
22
.drone.yml
22
.drone.yml
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user