From 269eec0c4b72990f0f6cb3cb2e31db2cc14f8b09 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 25 May 2020 19:40:39 +0200 Subject: [PATCH] try to publish to s3 --- .drone.yml | 57 +++++++++++++++++------------------------------------- 1 file changed, 18 insertions(+), 39 deletions(-) diff --git a/.drone.yml b/.drone.yml index a9784b9..11baa61 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 ...