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 1bc5ddeb1a
All checks were successful
continuous-integration/drone/push Build is passing
Switch back to old Hugo image
2021-04-18 15:02:42 -05:00

59 lines
1.1 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: mapitman/docker-hugo
commands:
- hugo version
- hugo --minify
---
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: mapitman/docker-hugo
commands:
- hugo version
- hugo --minify
- 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