build: Try uploading the script to MinIO

This commit is contained in:
Nikolai Rodionov 2023-04-18 09:30:33 +02:00
parent 49a9fbd0ef
commit 8f64d6499c
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10

34
.drone.yml Normal file
View File

@ -0,0 +1,34 @@
---
# ----------------------------------------------
# -- Build the site and push it to the registry
# ----------------------------------------------
kind: pipeline
type: kubernetes
name: Build badhouseplants.net
environment:
GIT_TAG: 0.5.0
trigger:
event:
- push
steps:
- name: Build the script
image: node
commands:
- git clone https://github.com/clappr/clappr.git .
- cd clappr
- git checkout $GIT_TAG
- npm install
- npm build
- name: Upload the script
image: rclone/rclone:latest
environment:
RCLONE_CONFIG_CONTENT:
from_secret: RCLONE_CONFIG_CONTENT_PRIVATE
RCLONE_CONFIG: /tmp/rclone.conf
commands:
- echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
- apk update
- rclone copy -P clappr/dist/ badhouseplants-minio:/badhouseplants-js/clappr/$GIT_TAG