This repository has been archived on 2021-05-20. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-14 00:55:59 -05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Deploy to bbaovanc.com
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
steps:
|
2021-04-18 15:21:40 -05:00
|
|
|
- name: submodules
|
2021-04-14 00:55:59 -05:00
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
2021-04-18 15:21:40 -05:00
|
|
|
- name: build
|
2021-05-12 10:46:06 -05:00
|
|
|
image: bbaovanc/hugo
|
2021-04-14 00:55:59 -05:00
|
|
|
commands:
|
|
|
|
- hugo version
|
|
|
|
- hugo --minify
|
|
|
|
|
2021-04-24 23:03:37 -05:00
|
|
|
- name: list files
|
2021-04-18 15:21:40 -05:00
|
|
|
image: alpine:latest
|
|
|
|
commands:
|
2021-04-24 23:03:37 -05:00
|
|
|
- find public/
|
2021-04-18 15:21:40 -05:00
|
|
|
|
|
|
|
- name: upload
|
2021-04-14 00:55:59 -05:00
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host: bbaovanc.com
|
|
|
|
port: 2222
|
|
|
|
username: droneci
|
|
|
|
key:
|
|
|
|
from_secret: SSH_KEY
|
|
|
|
target: /var/www/bbaovanc/blog/
|
|
|
|
rm: true
|
|
|
|
source: public/
|
|
|
|
strip_components: 1
|