Publish on s3
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2022-01-18 08:05:15 +01:00
parent 1d98979751
commit 6ab57e7faf

View File

@ -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