build: Try uploading the script to MinIO
This commit is contained in:
parent
49a9fbd0ef
commit
8f64d6499c
34
.drone.yml
Normal file
34
.drone.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user