From 3044747580280b827ea048a870064acc7e739d01 Mon Sep 17 00:00:00 2001 From: Thomas Cole Date: Mon, 19 Dec 2022 08:39:52 -0500 Subject: [PATCH] Update drone yml --- .drone.yml | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/.drone.yml b/.drone.yml index fd72c34..d613a81 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,38 +2,12 @@ kind: pipeline name: buildsite steps: -- name: restore_cache - image: appleboy/drone-sftp-cache - settings: - server: 192.168.10.5 - port: 22 - username: thomas - password: - from_secret: ssh_password - path: /tmp/drone - restore: true - mount: - - node_modules - - name: build image: node commands: - npm install - npm run build -- name: rebuild_cache - image: appleboy/drone-sftp-cache - settings: - server: 192.168.10.5 - port: 22 - username: thomas - password: - from_secret: ssh_password - path: /tmp/drone - rebuild: true - mount: - - node_modules - - name: copy image: appleboy/drone-scp settings: @@ -44,4 +18,8 @@ steps: port: 22 target: /home/thomas/swag/www source: ./dist/* - strip_components: 1 \ No newline at end of file + strip_components: 1 + +when: + branch: + - master \ No newline at end of file