trying to merge this file
This commit is contained in:
67
.drone.yml
67
.drone.yml
@@ -21,6 +21,14 @@ steps:
|
|||||||
- cd frontend
|
- cd frontend
|
||||||
- npm ci --silent
|
- npm ci --silent
|
||||||
- npm run build
|
- npm run build
|
||||||
|
- npm run lint || echo "ESLint warnings found"
|
||||||
|
|
||||||
|
- name: frontend-security
|
||||||
|
image: node:20-alpine
|
||||||
|
commands:
|
||||||
|
- cd frontend
|
||||||
|
- npm ci --silent
|
||||||
|
- npm audit --audit-level=moderate || echo "Security warnings found"
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@@ -47,7 +55,9 @@ steps:
|
|||||||
repo: registry.nevetime.ru/mc-panel-backend
|
repo: registry.nevetime.ru/mc-panel-backend
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_BUILD_NUMBER}
|
- "${DRONE_BUILD_NUMBER}"
|
||||||
|
- "${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
- "${DRONE_BRANCH}"
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
dockerfile: backend/Dockerfile
|
dockerfile: backend/Dockerfile
|
||||||
context: backend
|
context: backend
|
||||||
@@ -63,7 +73,9 @@ steps:
|
|||||||
repo: registry.nevetime.ru/mc-panel-frontend
|
repo: registry.nevetime.ru/mc-panel-frontend
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- ${DRONE_BUILD_NUMBER}
|
- "${DRONE_BUILD_NUMBER}"
|
||||||
|
- "${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
- "${DRONE_BRANCH}"
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
dockerfile: frontend/Dockerfile
|
dockerfile: frontend/Dockerfile
|
||||||
context: frontend
|
context: frontend
|
||||||
@@ -71,3 +83,54 @@ steps:
|
|||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
|
build_args:
|
||||||
|
- BUILD_DATE=${DRONE_BUILD_CREATED}
|
||||||
|
- VCS_REF=${DRONE_COMMIT_SHA}
|
||||||
|
- VERSION=${DRONE_TAG:-${DRONE_BRANCH}}
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build-monolith
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- code-quality
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-monolith-image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: registry.nevetime.ru
|
||||||
|
repo: registry.nevetime.ru/mc-panel
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
- "${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
- "${DRONE_BRANCH}"
|
||||||
|
auto_tag: true
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
context: .
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
build_args:
|
||||||
|
- BUILD_DATE=${DRONE_BUILD_CREATED}
|
||||||
|
- VCS_REF=${DRONE_COMMIT_SHA}
|
||||||
|
- VERSION=${DRONE_TAG:-${DRONE_BRANCH}}
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
|||||||
Reference in New Issue
Block a user