2020-02-25 12:14:44 -06:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2020-02-26 10:38:28 -06:00
|
|
|
- name: compress
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- npm install uglify-js svgo -g
|
|
|
|
- for i in js/*.js; do uglifyjs -c -m -o $i -- $i; done
|
|
|
|
- for i in $(find . -name "*.svg"); do svgo $i -o $i; done
|
|
|
|
|
2020-02-25 12:14:44 -06:00
|
|
|
- name: publish
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
- daihan.me
|
|
|
|
user:
|
|
|
|
from_secret: user
|
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|
|
|
|
passphrase:
|
|
|
|
from_secret: passphrase
|
|
|
|
port: 22
|
|
|
|
command_timeout: 2m
|
|
|
|
target:
|
|
|
|
from_secret: path
|
|
|
|
source:
|
|
|
|
- !./.drone.yml
|
2020-02-26 10:38:28 -06:00
|
|
|
- ./*
|