Automatically deploy to bbaovanc.com using Drone #1
12
.drone.yml
12
.drone.yml
@ -13,7 +13,12 @@ steps:
|
|||||||
image: mapitman/docker-hugo
|
image: mapitman/docker-hugo
|
||||||
commands:
|
commands:
|
||||||
- hugo version
|
- hugo version
|
||||||
- hugo --minify -d blog/
|
- hugo --minify
|
||||||
|
|
||||||
|
- name: Compress public folder
|
||||||
|
image: alpine/latest
|
||||||
|
commands:
|
||||||
|
- tar -czvf deploy.tar.gz public/*
|
||||||
|
|
||||||
- name: Upload files
|
- name: Upload files
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
@ -23,7 +28,6 @@ steps:
|
|||||||
username: droneci
|
username: droneci
|
||||||
key:
|
key:
|
||||||
from_secret: SSH_KEY
|
from_secret: SSH_KEY
|
||||||
target: /tmp/
|
target: /tmp/blog/
|
||||||
rm: true
|
rm: true
|
||||||
source:
|
source: deploy.tar.gz
|
||||||
- blog/
|
|
||||||
|
Reference in New Issue
Block a user