Automatically deploy to bbaovanc.com using Drone (#1)
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Add .drone.yml Co-authored-by: BBaoVanC <github@bbaovanc.com> Reviewed-on: #1 Co-Authored-By: bbaovanc <bbaovanc@noreply.bbaovanc.com> Co-Committed-By: bbaovanc <bbaovanc@noreply.bbaovanc.com>
This commit is contained in:
parent
6ca71e0ff7
commit
6fbf46a270
36
.drone.yml
Normal file
36
.drone.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Deploy to bbaovanc.com
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Update submodules
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
|
- name: Build site
|
||||||
|
image: mapitman/docker-hugo
|
||||||
|
commands:
|
||||||
|
- hugo version
|
||||||
|
- hugo --minify
|
||||||
|
|
||||||
|
- name: Upload files
|
||||||
|
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
|
Reference in New Issue
Block a user