clappr-script-mirror/.woodpecker.yaml

39 lines
880 B
YAML
Raw Permalink Normal View History

---
2024-05-26 10:23:41 +00:00
when:
event:
- push
steps:
2024-05-26 10:23:41 +00:00
build:
image: node
2024-05-26 10:23:41 +00:00
name: Build the script
commands:
- git clone https://github.com/clappr/clappr.git clappr
- cd clappr
- git checkout $GIT_TAG
2024-05-26 14:05:51 +00:00
- npm install -g yarn
- yarn install
- yarn run build
2024-05-26 10:23:41 +00:00
backend_options:
kubernetes:
resources:
requests:
memory: 500Mi
cpu: 200m
limits:
memory: 1000Mi
cpu: 1000m
securityContext:
privileged: true
upload:
name: Upload the script
image: rclone/rclone:latest
environment:
RCLONE_CONFIG: /tmp/rclone.conf
2024-05-26 10:23:41 +00:00
secrets:
- rclone_config_content
commands:
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
- apk update
- rclone copy -P clappr/dist/ badhouseplants-minio:/badhouseplants-js/clappr/$GIT_TAG