diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..207d7ee --- /dev/null +++ b/.drone.yml @@ -0,0 +1,25 @@ +kind: pipeline +type: docker +name: deploy + +steps: + - name: build + image: node:22 + commands: + - npm install -g @quasar/cli + - npm install + - quasar build -m spa + + - name: deploy + image: appleboy/drone-scp + settings: + host: 10.10.10.8 + username: root + key: + from_secret: SSH-nginx-key + source: ./dist/spa/* + strip_components: 2 + target: /usr/share/nginx/tgcrew/user + rm: true + when: + branch: main \ No newline at end of file