add
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2026-04-07 11:15:50 +10:00
parent 4a57d68c8c
commit bf9d63e635
3 changed files with 81 additions and 1 deletions

61
.drone.yml Normal file
View File

@@ -0,0 +1,61 @@
kind: pipeline
type: docker
name: default
steps:
- name: install-deps
image: node:22-alpine
commands:
- npm install
- name: build
image: node:22-alpine
commands:
- npm run build
depends_on:
- install-deps
- name: docker-build
image: plugins/docker
settings:
repo: gitea.allowlgroup.ru/allowlgroup/front
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
depends_on:
- build
when:
branch:
- main
event:
- push
- custom
- name: deploy
image: appleboy/drone-ssh
settings:
host: allowlgroup.ru
username:
from_secret: ssh_username
password:
from_secret: ssh_password
port: 22
script:
- docker stop front || true
- docker rm front || true
- docker pull gitea.allowlgroup.ru/allowlgroup/front:latest
- docker run -d --name front -p 80:80 gitea.allowlgroup.ru/allowlgroup/front:latest
when:
branch:
- main
event:
- push
- custom

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
# Stage 1: Build
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Serve with nginx
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

View File

@@ -4,7 +4,7 @@
>
<div class="flex flex-wrap items-center gap-2 w-full justify-between">
<!-- Поля ввода дат в одной строке -->
<div class="flex items-center gap-2 flex-grow max-w-120">
<div class="flex items-center gap-2 flex-grow max-w-130">
<span class="dark:text-neutral-300 whitespace-nowrap">с</span>
<DatePicker v-model="data_start" />