daihan.me/.drone.yml

31 lines
650 B
YAML
Raw Normal View History

2020-02-25 12:14:44 -06:00
kind: pipeline
type: docker
name: default
steps:
- 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
- ./*