)
This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -3,14 +3,6 @@ type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: python:3.11-slim
|
||||
commands:
|
||||
- pip install --no-cache-dir -r requirements.txt
|
||||
- pip install pytest pytest-asyncio
|
||||
- pytest tests/ -v
|
||||
depends_on: []
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
@@ -28,8 +20,6 @@ steps:
|
||||
- docker run -d --name gptchat -p 8084:8084 \
|
||||
--restart unless-stopped \
|
||||
gitea.allowlgroup.ru/allowlgroup/gptchat:latest
|
||||
depends_on:
|
||||
- test # запускать только после успешных тестов
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
||||
Reference in New Issue
Block a user