add pipeline

This commit is contained in:
2026-05-23 09:54:52 +03:00
parent 1530d52c90
commit 92941d43de
4 changed files with 1552 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
kind: pipeline
type: docker
name: build-and-push
steps:
- name: build-image
image: plugins/docker
settings:
registry: git.sedletskiy.ru
repo: git.sedletskiy.ru/Kosechok/network-tools-server
tags:
- latest
- ${DRONE_COMMIT_SHA:0:8}
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
trigger:
branch:
- main
event:
- push
-1
View File
@@ -1,2 +1 @@
node_modules/ node_modules/
package-lock.json
+12
View File
@@ -0,0 +1,12 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
EXPOSE 4000
CMD ["node", "index.js"]
+1516
View File
File diff suppressed because it is too large Load Diff