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