diff --git a/.drone.yml b/.drone.yml index b459ceb..65ac7eb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,7 @@ trigger: steps: - name: build - image: node:16-alpine + image: node:18-alpine environment: NODE_OPTIONS: --max-old-space-size=4096 commands: @@ -17,6 +17,16 @@ steps: - npm run build:h5 - ls -la dist/build/h5/ + - name: clean + image: appleboy/drone-ssh + settings: + host: 154.30.6.21 + username: root + key: + from_secret: ssh_key + script: + - rm -rf /var/www/martial-admin-mini/* + - name: deploy image: appleboy/drone-scp settings: