boba.best/.drone.yml

41 lines
775 B
YAML
Raw Permalink Normal View History

2021-04-24 21:37:42 -05:00
---
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
2021-10-03 15:11:23 -05:00
image: jojomi/hugo
2021-04-24 21:37:42 -05:00
commands:
2021-06-02 15:40:15 -05:00
- hugo
2021-04-24 21:37:42 -05:00
2021-05-29 18:30:03 -05:00
- name: compress
image: bbaovanc/compression:latest
2021-05-29 18:30:03 -05:00
commands:
2021-06-02 19:57:01 -05:00
- time ./compress.sh
2021-05-29 18:30:03 -05:00
2021-04-24 21:37:42 -05:00
- name: upload
image: appleboy/drone-scp
settings:
host: boba.best
2021-05-12 18:04:46 -05:00
port: 2222
2021-04-24 21:37:42 -05:00
username: droneci
key:
from_secret: SSH_KEY
target: /var/www/boba.best/public/
rm: true
source: public/
strip_components: 1