39 lines
880 B
YAML
39 lines
880 B
YAML
---
|
|
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 -g yarn
|
|
- yarn install
|
|
- yarn 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
|