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

This commit is contained in:
nemunaire 2022-01-18 07:59:34 +01:00
parent 0e09858d2a
commit 7972e28ee2

View File

@ -14,24 +14,22 @@ steps:
hugo_version: 0.70.0 hugo_version: 0.70.0
validate: true validate: true
- name: deploy - name: publish on s3
image: appleboy/drone-scp image: plugins/s3
settings: settings:
debug: true endpoint: https://storage.nemunai.re
tar_tmp_path: /tmp/ path_style: true
host: ${TARGET_HOST:=www.happydns.org} bucket: happydomain-htdocs
target: ${TARGET_DIRECTORY:=/var/www/happydns.org/htdocs} access_key:
source: public/* from_secret: s3_access_key
strip_components: 1 secret_key:
username: from_secret: s3_secret_key
from_secret: ssh_username source: public/**/*
key: strip_prefix: public/
from_secret: deploy_key target: /${DRONE_BRANCH//\//-}
port:
from_secret: ssh_port trigger:
when: event:
branch: - cron
- master - push
event: - tag
exclude:
- pull_request