All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
30 lines
738 B
YAML
30 lines
738 B
YAML
---
|
|
when:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
build:
|
|
image: node:18.20.8-bullseye
|
|
name: Build the script
|
|
environment:
|
|
GIT_TAG: '@clappr/player@0.11.9'
|
|
commands:
|
|
- git clone https://github.com/clappr/clappr.git clappr
|
|
- cd clappr
|
|
- git checkout $GIT_TAG
|
|
- cd ./packages/player
|
|
- yarn install
|
|
- yarn run build
|
|
upload:
|
|
name: Upload the script
|
|
image: rclone/rclone:latest
|
|
environment:
|
|
GIT_TAG: 0.11.9
|
|
RCLONE_CONFIG: /tmp/rclone.conf
|
|
RCLONE_CONFIG_CONTENT:
|
|
from_secret: rclone_config_content
|
|
commands:
|
|
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
|
|
- rclone copy -P clappr/packages/player/dist/ s3:/badhouseplants-js/clappr/$GIT_TAG
|