Try migrating to Woodpecker
This commit is contained in:
37
.woodpecker.yaml
Normal file
37
.woodpecker.yaml
Normal 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
|
Reference in New Issue
Block a user