Try migrating to Woodpecker

This commit is contained in:
2024-05-26 12:23:41 +02:00
parent 1b93443b20
commit 92e25fe950

37
.woodpecker.yaml Normal file
View File

@ -0,0 +1,37 @@
---
when:
event:
- push
steps:
build:
image: node
name: Build the script
commands:
- git clone https://github.com/clappr/clappr.git clappr
- cd clappr
- git checkout $GIT_TAG
- npm install
- npm run build
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
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