From 57769eb9a3c57c78c842efdceadb8bfedf91f71c Mon Sep 17 00:00:00 2001 From: user-penguin Date: Sat, 24 Aug 2024 17:43:19 +0700 Subject: [PATCH] add drone --- .drone.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..cb5a9d0 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,34 @@ +kind: pipeline +type: docker +name: stage-deploy + +trigger: + event: + - push + +steps: + - name: build + image: node:20.9 + commands: + - node -v + - npm -v + - yarn --version + - yarn install + - yarn build + + - name: scp + image: appleboy/drone-scp + settings: + host: + from_secret: server_ip + username: + from_secret: ssh_user + key: + from_secret: ssh_key + port: + from_secret: ssh_port + target: + - deploys/sweet_crm + source: + - .output + rm: true