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 a67a689a87
All checks were successful
continuous-integration/drone/push Build is passing
Fix error in alpine image name
2021-04-14 00:38:31 -05:00

34 lines
716 B
YAML

---
kind: pipeline
type: docker
name: Deploy to bbaovanc.com
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: Compress public folder
image: alpine
commands:
- tar -czvf deploy.tar.gz public/*
- name: Upload files
image: appleboy/drone-scp
settings:
host: bbaovanc.com
port: 2222
username: droneci
key:
from_secret: SSH_KEY
target: /tmp/blog/
rm: true
source: deploy.tar.gz