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