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-01 01:32:03 -05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Deploy to bbaovanc.com
|
|
|
|
|
|
|
|
steps:
|
2021-04-14 00:19:39 -05:00
|
|
|
- name: Update submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
2021-04-01 01:32:03 -05:00
|
|
|
- name: Build site
|
|
|
|
image: mapitman/docker-hugo
|
|
|
|
commands:
|
|
|
|
- hugo version
|
2021-04-14 00:37:31 -05:00
|
|
|
- hugo --minify
|
|
|
|
|
2021-04-01 01:32:03 -05:00
|
|
|
- name: Upload files
|
|
|
|
image: appleboy/drone-scp
|
2021-04-14 00:25:31 -05:00
|
|
|
settings:
|
2021-04-01 01:32:03 -05:00
|
|
|
host: bbaovanc.com
|
|
|
|
port: 2222
|
|
|
|
username: droneci
|
|
|
|
key:
|
|
|
|
from_secret: SSH_KEY
|
2021-04-14 00:37:31 -05:00
|
|
|
target: /tmp/blog/
|
2021-04-01 01:32:03 -05:00
|
|
|
rm: true
|
2021-04-14 00:41:24 -05:00
|
|
|
source: public/
|
|
|
|
strip_components: 1
|