+
This commit is contained in:
@@ -8,7 +8,8 @@ steps:
|
||||
commands:
|
||||
- pip install --no-cache-dir -r requirements.txt
|
||||
- pip install pytest pytest-asyncio
|
||||
- pytest tests/ -v || true
|
||||
- pytest tests/ -v
|
||||
depends_on: []
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-ssh
|
||||
@@ -24,7 +25,11 @@ steps:
|
||||
- docker stop gptchat || true
|
||||
- docker rm gptchat || true
|
||||
- docker pull gitea.allowlgroup.ru/allowlgroup/gptchat:latest
|
||||
- docker run -d --name gptchat -p 8084:8084 gitea.allowlgroup.ru/allowlgroup/gptchat:latest
|
||||
- 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