This commit is contained in:
36
.drone.yml
36
.drone.yml
@@ -8,28 +8,28 @@ trigger:
|
||||
- pull_request
|
||||
|
||||
steps:
|
||||
- name: python-lint
|
||||
- name: python-lint
|
||||
image: python:3.11-slim
|
||||
commands:
|
||||
- cd backend
|
||||
- pip install flake8
|
||||
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
|
||||
- name: frontend-lint
|
||||
- name: frontend-lint
|
||||
image: node:20-alpine
|
||||
commands:
|
||||
- cd frontend
|
||||
- npm ci --silent
|
||||
- npm run lint || echo "ESLint warnings found"
|
||||
|
||||
- name: python-security
|
||||
- name: python-security
|
||||
image: python:3.11-slim
|
||||
commands:
|
||||
- cd backend
|
||||
- pip install safety
|
||||
- safety check --file=requirements.txt --exit-zero || echo "Security warnings found"
|
||||
|
||||
- name: frontend-security
|
||||
- name: frontend-security
|
||||
image: node:20-alpine
|
||||
commands:
|
||||
- cd frontend
|
||||
@@ -51,10 +51,10 @@ trigger:
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- code-quality
|
||||
- code-quality
|
||||
|
||||
steps:
|
||||
- name: build-backend-image
|
||||
- name: build-backend-image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: registry.nevetime.ru
|
||||
@@ -94,10 +94,10 @@ trigger:
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- code-quality
|
||||
- code-quality
|
||||
|
||||
steps:
|
||||
- name: build-frontend-image
|
||||
- name: build-frontend-image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: registry.nevetime.ru
|
||||
@@ -138,10 +138,10 @@ trigger:
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- code-quality
|
||||
- code-quality
|
||||
|
||||
steps:
|
||||
- name: build-monolith-image
|
||||
- name: build-monolith-image
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: registry.nevetime.ru
|
||||
@@ -178,12 +178,12 @@ trigger:
|
||||
- push
|
||||
|
||||
depends_on:
|
||||
- build-backend
|
||||
- build-frontend
|
||||
- build-monolith
|
||||
- build-backend
|
||||
- build-frontend
|
||||
- build-monolith
|
||||
|
||||
steps:
|
||||
- name: deploy-separate-services
|
||||
- name: deploy-separate-services
|
||||
image: alpine:latest
|
||||
environment:
|
||||
STAGING_HOST:
|
||||
@@ -211,12 +211,12 @@ trigger:
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- build-backend
|
||||
- build-frontend
|
||||
- build-monolith
|
||||
- build-backend
|
||||
- build-frontend
|
||||
- build-monolith
|
||||
|
||||
steps:
|
||||
- name: deploy-separate-services
|
||||
- name: deploy-separate-services
|
||||
image: alpine:latest
|
||||
environment:
|
||||
PROD_HOST:
|
||||
|
||||
Reference in New Issue
Block a user