From 967c70d7e1e10ee3714125f2913449ecc583317e Mon Sep 17 00:00:00 2001 From: user-penguin Date: Fri, 23 Aug 2024 00:19:06 +0700 Subject: [PATCH] add drone yaml --- .drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..cbcd88e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +kind: pipeline +type: docker +name: stage-deploy + +trigger: + event: + - tag + +steps: + - name: build + image: node:16 + commands: + - node -v + - npm -v + - yarn --version + - yarn add @vue/cli-service + - 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/cake_frontend + source: + - dist + rm: true