From b3bd01c16da575b44452b2d219d0eda846c135ac Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Tue, 23 Apr 2024 13:11:20 +0200 Subject: [PATCH] Try using woodpecker variables and rclone copyto --- .woodpecker/build.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index 356e307..5873f96 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -2,6 +2,9 @@ when: event: push +variables: + - &s3_path 'badhouseplants-minio:/public-download/n.rodionov' + steps: build: name: Build the CV @@ -37,8 +40,7 @@ steps: commands: - echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG - |- - rclone copy -P $CI_WORKSPACE/cv \ - badhouseplants-minio:/public-download/n.rodionov + rclone copy -P $CI_WORKSPACE/cv *s3_path release: when: @@ -52,6 +54,6 @@ steps: commands: - echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG - |- - rclone copy -P \ - badhouseplants-minio:/public-download/n.rodionov/n.rodionov.$CI_COMMIT_SHA.pdf \ - badhouseplants-minio:/public-download/n.rodionov.pdf + rclone copyto \ + *s3_path/n.rodionov.$CI_COMMIT_SHA.pdf \ + *s3_path.pdf