diff --git a/.drone.yml b/.drone.yml index 66d03ea..d0dcaf3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,9 +10,11 @@ steps: - pip install pytest pytest-asyncio - pytest tests/ -v || true - - name: deploy - image: docker:cli - network_mode: host + - name: build-and-deploy + image: docker:latest + volumes: + - name: docker-socket + path: /var/run commands: - docker build -t gptchat:latest . - docker stop gptchat || true @@ -22,4 +24,8 @@ steps: branch: - main event: - - push \ No newline at end of file + - push +volumes: + - name: docker-socket + host: + path: /var/run/docker.sock \ No newline at end of file