61
.drone.yml
Normal file
61
.drone.yml
Normal 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
19
Dockerfile
Normal 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;"]
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user