test
This commit is contained in:
19
.drone.yml
19
.drone.yml
@@ -10,32 +10,17 @@ steps:
|
|||||||
- pip install pytest pytest-asyncio
|
- pip install pytest pytest-asyncio
|
||||||
- pytest tests/ -v || true
|
- pytest tests/ -v || true
|
||||||
|
|
||||||
- name: build-image
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
repo: gptchat
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- ${DRONE_COMMIT_SHA:0:8}
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
context: .
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host: gitea.allowlgroup.ru
|
host: gitea.allowlgroup.ru
|
||||||
username:
|
username:
|
||||||
from_secret: ssh_username
|
from_secret: ssh_username
|
||||||
key:
|
password:
|
||||||
from_secret: ssh_password
|
from_secret: ssh_password
|
||||||
port: 22
|
port: 22
|
||||||
script:
|
script:
|
||||||
- cd /opt/gptchat || mkdir -p /opt/gptchat
|
- mkdir -p /opt/gptchat
|
||||||
- cd /opt/gptchat && docker build -t gptchat:latest .
|
- cd /opt/gptchat && docker build -t gptchat:latest .
|
||||||
- docker stop gptchat || true
|
- docker stop gptchat || true
|
||||||
- docker rm gptchat || true
|
- docker rm gptchat || true
|
||||||
|
|||||||
Reference in New Issue
Block a user