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.
blog/.drone.yml
BBaoVanC 66b23ebdea
Some checks failed
continuous-integration/drone/push Build is failing
Use promotions and hugo plugin
2021-04-18 15:00:26 -05:00

59 lines
1.0 KiB
YAML

---
kind: pipeline
type: docker
name: Build and validate
trigger:
event:
- push
- pull_request
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: plugins/hugo
settings:
hugo_version: 0.82
validate: true
---
kind: pipeline
type: docker
name: Deploy to bbaovanc.com
trigger:
event:
- promote
target:
- production
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: plugins/hugo
settings:
hugo_version: 0.82
validate: true
- name: deploy
image: appleboy/drone-scp
settings:
host: bbaovanc.com
port: 2222
username: droneci
key:
from_secret: SSH_KEY
target: /tmp/blog/
#target: /var/www/bbaovanc/blog/
rm: true
source: public/
strip_components: 1