From a1527243a3f0ae1c1659fdd5e3886b603391e775 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 17 Jul 2025 13:47:29 +0200 Subject: [PATCH] Update the job Signed-off-by: Nikolai Rodionov --- .woodpecker.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index d5a170e..e43283e 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -3,10 +3,13 @@ when: event: - push + steps: build: image: node name: Build the script + environment: + GIT_TAG: 0.11.0 commands: - git clone https://github.com/clappr/clappr.git clappr - cd clappr @@ -21,18 +24,15 @@ steps: memory: 500Mi cpu: 200m limits: - memory: 1000Mi - cpu: 1000m - securityContext: - privileged: true + memory: 500mi upload: name: Upload the script image: rclone/rclone:latest environment: + GIT_TAG: 0.11.0 RCLONE_CONFIG: /tmp/rclone.conf - secrets: - - rclone_config_content + RCLONE_CONFIG_CONTENT: + from_secret: rclone_config_content commands: - echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG - - apk update - - rclone copy -P clappr/dist/ badhouseplants-minio:/badhouseplants-js/clappr/$GIT_TAG + - rclone copy -P clappr/dist/ s3:/badhouseplants-js/clappr/$GIT_TAG