new
This commit is contained in:
14
.drone.yml
14
.drone.yml
@@ -10,9 +10,11 @@ steps:
|
|||||||
- pip install pytest pytest-asyncio
|
- pip install pytest pytest-asyncio
|
||||||
- pytest tests/ -v || true
|
- pytest tests/ -v || true
|
||||||
|
|
||||||
- name: deploy
|
- name: build-and-deploy
|
||||||
image: docker:cli
|
image: docker:latest
|
||||||
network_mode: host
|
volumes:
|
||||||
|
- name: docker-socket
|
||||||
|
path: /var/run
|
||||||
commands:
|
commands:
|
||||||
- docker build -t gptchat:latest .
|
- docker build -t gptchat:latest .
|
||||||
- docker stop gptchat || true
|
- docker stop gptchat || true
|
||||||
@@ -22,4 +24,8 @@ steps:
|
|||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
volumes:
|
||||||
|
- name: docker-socket
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
Reference in New Issue
Block a user