2022-05-31 22:39:58 -04:00
|
|
|
kind: pipeline
|
|
|
|
name: buildsite
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- npm install
|
2022-06-03 05:42:33 -04:00
|
|
|
- npm run build
|
2022-06-03 06:01:55 -04:00
|
|
|
|
|
|
|
- name: copy
|
2022-06-03 05:46:44 -04:00
|
|
|
image: appleboy/drone-scp
|
2022-06-03 05:42:33 -04:00
|
|
|
settings:
|
2022-06-03 05:46:44 -04:00
|
|
|
host: 192.168.10.5
|
2022-06-03 05:42:33 -04:00
|
|
|
username: thomas
|
|
|
|
password:
|
|
|
|
from_secret: ssh_password
|
|
|
|
port: 22
|
2022-06-03 05:46:44 -04:00
|
|
|
target: /home/thomas/wwwtest
|
2022-06-03 06:01:55 -04:00
|
|
|
source: ./dist
|
|
|
|
|
|
|
|
- name: cleanup
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host: 192.168.10.5
|
|
|
|
username: thomas
|
|
|
|
password:
|
|
|
|
from_secret: ssh_password
|
|
|
|
port: 22
|
|
|
|
script:
|
|
|
|
- cd /home/thomas/wwwtest
|