2020-05-25 18:07:34 +00:00
|
|
|
workspace:
|
|
|
|
path: /sb
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: node:12
|
|
|
|
commands:
|
|
|
|
- npm ci
|
|
|
|
- npm run build
|
|
|
|
|
|
|
|
- name: publish
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host: web5svsvy.wh.hosting.zone
|
|
|
|
port: 2244
|
|
|
|
username:
|
2020-05-25 21:10:21 +00:00
|
|
|
from_secret: dev_ssh_user
|
2020-05-25 18:07:34 +00:00
|
|
|
key:
|
2020-05-25 21:10:21 +00:00
|
|
|
from_secret: dev_ssh_key
|
2020-05-25 18:07:34 +00:00
|
|
|
source: ./dist/*
|
|
|
|
target: /home/web5svsvy/html/schlechtenburg.b12f.io/
|
2020-05-25 21:10:21 +00:00
|
|
|
strip_components: 1
|
2020-05-25 18:07:34 +00:00
|
|
|
rm: true
|