„.drone.yml“ ändern

This commit is contained in:
Artem Anufrij 2023-02-09 22:25:46 +01:00
parent 3af8005786
commit 8846412620

View File

@ -8,38 +8,8 @@ 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
- npm run build