client/.drone.yml

46 lines
1.0 KiB
YAML
Raw Normal View History

2023-02-08 12:37:55 +01:00
kind: pipeline
name: default
clone:
disable: true
steps:
- name: build
image: node:latest
commands:
- git clone https://gitea.com/artemanufrij/core.git
- cd core
- npm install
- mkdir app
- cd app
- git clone https://gitea.com/WebPlay/client.git
- cd client
- git checkout ${DRONE_BRANCH}
- sed -i '/"electron":/d' ./package.json
- sed -i '/"electron-builder":/d' ./package.json
- sed -i '/"express":/d' ./package.json
- npm install
- npm run build
- mv dist ../../..
- name: deploy
image: appleboy/drone-scp
when:
branch: master
event: push
settings:
host:
from_secret: drone_server_host
username:
from_secret: drone_server_user
password:
from_secret: drone_server_pass
port:
from_secret: drone_server_port
command_timeout: 2m
rm: true
target: /var/www/drone/app/webplay
source:
- dist/*
strip_components: 1