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