Update the job
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
2025-07-17 13:47:29 +02:00
parent a0b838b7ea
commit a1527243a3

View File

@ -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