Thomas Cole
f1c42c48a8
All checks were successful
continuous-integration/drone/push Build is passing
29 lines
421 B
YAML
29 lines
421 B
YAML
kind: pipeline
|
|
name: buildsite
|
|
|
|
steps:
|
|
- name: build
|
|
image: node
|
|
commands:
|
|
- npm install
|
|
- npm run build
|
|
when:
|
|
branch:
|
|
- master
|
|
|
|
- name: copy
|
|
image: appleboy/drone-scp
|
|
settings:
|
|
host: 192.168.10.5
|
|
username: thomas
|
|
password:
|
|
from_secret: ssh_password
|
|
port: 22
|
|
target: /home/thomas/swag/www
|
|
source: ./dist/*
|
|
strip_components: 1
|
|
when:
|
|
branch:
|
|
- master
|
|
|