try to publish to s3
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-05-25 19:40:39 +02:00
parent fd745797cc
commit 269eec0c4b
1 changed files with 18 additions and 39 deletions

View File

@ -2,6 +2,10 @@
kind: pipeline
name: default
platform:
os: linux
arch: amd64
concurrency:
limit: 1
@ -15,59 +19,34 @@ steps:
- name: sync
image: xoxys/git-batch:latest
commands:
- git-batch
- git-batch
- name: build
image: klakegg/hugo:0.69.0-ext-alpine
commands:
- hugo-official
- name: freeze
image: appleboy/drone-ssh:1.5.5
settings:
host:
from_secret: ssh_host
key:
from_secret: ssh_key
script:
- cp -R /var/www/virtual/geeklab/html/galaxy.geekdocs.de/ /var/www/virtual/geeklab/html/galaxy_freeze/
- ln -sfn /var/www/virtual/geeklab/html/galaxy_freeze /var/www/virtual/geeklab/galaxy.geekdocs.de
username:
from_secret: ssh_username
- hugo-official
- name: publish
image: appleboy/drone-scp
image: plugins/s3
settings:
host:
from_secret: ssh_host
key:
from_secret: ssh_key
rm: true
access_key:
from_secret: s3_access_key
bucket: geekdocs
delete: true
endpoint: https://sp.rknet.org
path_style: true
secret_key:
from_secret: s3_secret_access_key
source: public/*
strip_components: 1
target: /var/www/virtual/geeklab/html/galaxy.geekdocs.de/
username:
from_secret: ssh_username
- name: cleanup
image: appleboy/drone-ssh:1.5.5
settings:
host:
from_secret: ssh_host
key:
from_secret: ssh_key
script:
- ln -sfn /var/www/virtual/geeklab/html/galaxy.geekdocs.de /var/www/virtual/geeklab/galaxy.geekdocs.de
- rm -rf /var/www/virtual/geeklab/html/galaxy_freeze/
username:
from_secret: ssh_username
target: ${DRONE_REPO_NAME}
trigger:
ref:
- refs/heads/master
- refs/pull/**
---
kind: signature
hmac: 786a4014e58c7619b881393cec592ed3ba5f186da67558c43663cc0d9dc07b92
hmac: d2a509c25adf88f4e2227a7e87fe9ad37025e41c71ef038ad21608818a7b8170
...