This commit is contained in:
28
.drone.yml
28
.drone.yml
@@ -8,34 +8,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- pip install --no-cache-dir -r requirements.txt
|
- pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
- name: test
|
|
||||||
image: python:3.11-slim
|
|
||||||
commands:
|
|
||||||
- pip install --no-cache-dir -r requirements.txt
|
|
||||||
- pip install pytest pytest-asyncio
|
|
||||||
- pytest tests/ -v || true
|
|
||||||
|
|
||||||
- name: docker-build
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
repo: gitea.allowlgroup.ru/allowlgroup/gptchat
|
|
||||||
registry: https://gitea.allowlgroup.ru
|
|
||||||
insecure: true
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- ${DRONE_COMMIT_SHA:0:8}
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
- custom
|
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
|
|||||||
Reference in New Issue
Block a user