|
|
@@ -1,29 +1,29 @@
|
|
|
kind: pipeline
|
|
|
name: default
|
|
|
steps:
|
|
|
-# - name: build
|
|
|
-# image: node:14
|
|
|
-# commands:
|
|
|
-# - npm config set registry http://registry.npm.taobao.org
|
|
|
-# - npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
|
|
|
-# - npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
|
|
|
-# - npm i
|
|
|
-# - npm run build:stage
|
|
|
-# - pwd
|
|
|
-# - ls -la
|
|
|
-# - name: removeFiles
|
|
|
-# image: appleboy/drone-ssh
|
|
|
-# settings:
|
|
|
-# host: gdsc.ninecase.top
|
|
|
-# username: root
|
|
|
-# password: $jgkj001
|
|
|
-# debug: true
|
|
|
-# script:
|
|
|
-# - cd /www/wwwroot/railway-web.iamsee.com/release
|
|
|
-# - pwd
|
|
|
-# - chattr -i dist/.user.ini
|
|
|
-# - rm -rf dist
|
|
|
-# - rm -rf Dockerfile
|
|
|
+ - name: build
|
|
|
+ image: node:14
|
|
|
+ commands:
|
|
|
+ - npm config set registry http://registry.npm.taobao.org
|
|
|
+ - npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
|
|
|
+ - npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
|
|
|
+ - npm i
|
|
|
+ - npm run build:stage
|
|
|
+ - pwd
|
|
|
+ - ls -la
|
|
|
+ - name: removeFiles
|
|
|
+ image: appleboy/drone-ssh
|
|
|
+ settings:
|
|
|
+ host: gdsc.ninecase.top
|
|
|
+ username: root
|
|
|
+ password: $jgkj001
|
|
|
+ debug: true
|
|
|
+ script:
|
|
|
+ - cd /www/wwwroot/railway-web.iamsee.com/release
|
|
|
+ - pwd
|
|
|
+ - chattr -i dist/.user.ini
|
|
|
+ - rm -rf dist
|
|
|
+ - rm -rf Dockerfile
|
|
|
- name: scp_files
|
|
|
image: appleboy/drone-scp
|
|
|
settings:
|
|
|
@@ -31,9 +31,11 @@ steps:
|
|
|
username: root
|
|
|
password: $jgkj001
|
|
|
debug: true
|
|
|
- target: /www/wwwroot/railway-web.iamsee.com/release
|
|
|
+ target:
|
|
|
+ - /www/wwwroot/railway-web.iamsee.com/release
|
|
|
+ - /www/wwwroot/railway-web.iamsee.com/release
|
|
|
source:
|
|
|
-# - dist
|
|
|
+ - dist
|
|
|
- Dockerfile
|
|
|
rm: true
|
|
|
script:
|