BBaoVanC
c7dc7e05be
Some checks reported errors
continuous-integration/drone/push Build encountered an error
34 lines
723 B
YAML
34 lines
723 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/latest
|
|
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
|