boba.best/.drone.yml

43 lines
820 B
YAML

---
kind: pipeline
type: docker
name: Deploy to boba.best
trigger:
branch:
- master
event:
exclude:
- pull_request
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: mapitman/docker-hugo
commands:
- hugo version
- hugo --minify
- name: tree
image: alpine:latest
commands:
- apk add tree
- tree -a public/
- name: upload
image: appleboy/drone-scp
settings:
host: boba.best
port: 22
username: droneci
key:
from_secret: SSH_KEY
target: /var/www/boba.best/public/
rm: true
source: public/
strip_components: 1