Automatically deploy to bbaovanc.com using Drone #1
@ -15,11 +15,6 @@ steps:
|
|||||||
- hugo version
|
- hugo version
|
||||||
- hugo --minify
|
- hugo --minify
|
||||||
|
|
||||||
- name: Compress public folder
|
|
||||||
image: alpine
|
|
||||||
commands:
|
|
||||||
- tar -czvf deploy.tar.gz public/*
|
|
||||||
|
|
||||||
- name: Upload files
|
- name: Upload files
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
settings:
|
settings:
|
||||||
@ -30,4 +25,5 @@ steps:
|
|||||||
from_secret: SSH_KEY
|
from_secret: SSH_KEY
|
||||||
target: /tmp/blog/
|
target: /tmp/blog/
|
||||||
rm: true
|
rm: true
|
||||||
source: deploy.tar.gz
|
source: public/
|
||||||
|
strip_components: 1
|
||||||
|
Reference in New Issue
Block a user