This commit is contained in:
parent
1d98979751
commit
6ab57e7faf
37
.drone.yml
37
.drone.yml
@ -21,23 +21,22 @@ steps:
|
||||
hugo_version: 0.84.4
|
||||
validate: true
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-scp
|
||||
- name: publish on s3
|
||||
image: plugins/s3
|
||||
settings:
|
||||
tar_tmp_path: /tmp/
|
||||
host: blog.happydns.org
|
||||
target: /var/www/happydns.org/blog/
|
||||
source: public/*
|
||||
strip_components: 1
|
||||
username:
|
||||
from_secret: ssh_username
|
||||
key:
|
||||
from_secret: deploy_key
|
||||
port:
|
||||
from_secret: ssh_port
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
endpoint: https://storage.nemunai.re
|
||||
path_style: true
|
||||
bucket: happydomain-blog
|
||||
access_key:
|
||||
from_secret: s3_access_key
|
||||
secret_key:
|
||||
from_secret: s3_secret_key
|
||||
source: public/**/*
|
||||
strip_prefix: public/
|
||||
target: /${DRONE_BRANCH//\//-}
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- cron
|
||||
- push
|
||||
- tag
|
||||
|
Loading…
Reference in New Issue
Block a user