From 21777ba46e67191ba255ee7366fddcafb437cc78 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sat, 15 Jul 2023 19:04:39 +0200 Subject: [PATCH] Core: clean before push --- .drone.yml | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index 16e6127..e1ea476 100644 --- a/.drone.yml +++ b/.drone.yml @@ -51,22 +51,21 @@ steps: # SSH_KEY: # from_secret: sshcontent-key # -- name: Push Raw Minio - image: plugins/s3 - settings: - bucket: raw - endpoint: https://storage.opytex.org - access_key: - from_secret: minio_access_key - secret_key: - from_secret: minio_secret_key - source: ./**/* - target: / - exclude: ".gitignore" - exclude: ".git/" - exclude: "config" - exclude: "*/evaluations/DS*" - exclude: "tools/" - exclude: "*.rst" - exclude: "*.tex" - path_style: true + + - name: Clean before push + image: alpine + commands: + - rm -r tools/ .* **/*.tex **/Evaluations/DS* + + - name: Push Raw Minio + image: plugins/s3-sync:1 + settings: + bucket: raw + endpoint: https://storage.opytex.org + access_key: + from_secret: minio_access_key + secret_key: + from_secret: minio_secret_key + source: ./**/* + target: / + path_style: true