fixed drone.yml
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2026-01-18 20:23:19 +06:00
parent d8f7f108c7
commit e66ecbf178

View File

@@ -1,4 +1,3 @@
---
kind: pipeline
type: docker
name: code-quality
@@ -9,7 +8,7 @@ trigger:
- pull_request
steps:
- name: python-lint
- name: python-lint
image: python:3.11-slim
commands:
- cd backend
@@ -22,7 +21,7 @@ steps:
- isort --check-only --diff . || echo "WARNING Import sorting issues found"
- echo "SUCCESS Python checks completed"
- name: frontend-lint
- name: frontend-lint
image: node:20-alpine
commands:
- cd frontend
@@ -33,7 +32,7 @@ steps:
- npm run lint || echo "WARNING ESLint warnings found (non-blocking)"
- echo "SUCCESS Frontend checks completed"
- name: python-tests
- name: python-tests
image: python:3.11-slim
commands:
- cd backend
@@ -46,7 +45,7 @@ steps:
- push
- pull_request
- name: frontend-tests
- name: frontend-tests
image: node:20-alpine
commands:
- cd frontend
@@ -59,7 +58,7 @@ steps:
- push
- pull_request
- name: python-security
- name: python-security
image: python:3.11-slim
commands:
- cd backend
@@ -70,7 +69,7 @@ steps:
- bandit -r . -f json -o bandit-report.json || echo "WARNING Security issues found"
- echo "SUCCESS Security checks completed"
- name: frontend-security
- name: frontend-security
image: node:20-alpine
commands:
- cd frontend
@@ -94,10 +93,10 @@ trigger:
- develop
depends_on:
- code-quality
- code-quality
steps:
- name: build-and-push
- name: build-and-push
image: plugins/docker
settings:
registry: registry.nevetime.ru
@@ -122,7 +121,7 @@ steps:
- push
- tag
- name: test-image
- name: test-image
image: docker:dind
volumes:
- name: docker-sock
@@ -142,7 +141,7 @@ steps:
depends_on:
- build-and-push
- name: scan-image
- name: scan-image
image: aquasec/trivy:latest
environment:
TRIVY_USERNAME:
@@ -161,7 +160,7 @@ steps:
- build-and-push
volumes:
- name: docker-sock
- name: docker-sock
host:
path: /var/run/docker.sock
@@ -177,10 +176,10 @@ trigger:
- develop
depends_on:
- build-and-publish
- build-and-publish
steps:
- name: deploy-to-staging
- name: deploy-to-staging
image: alpine:latest
environment:
STAGING_HOST:
@@ -214,10 +213,10 @@ trigger:
- refs/tags/v*
depends_on:
- build-and-publish
- build-and-publish
steps:
- name: deploy-to-production
- name: deploy-to-production
image: alpine:latest
environment:
PROD_HOST:
@@ -252,11 +251,11 @@ trigger:
- failure
depends_on:
- code-quality
- build-and-publish
- code-quality
- build-and-publish
steps:
- name: notify-telegram
- name: notify-telegram
image: appleboy/drone-telegram
settings:
token: