Compare commits

...

10 Commits

Author SHA1 Message Date
309be57024 Drop that, done by scripts
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2021-07-13 13:10:46 +02:00
3d46d291bb Add drone note [ci skip] 2021-07-13 13:09:13 +02:00
ffb949366a Separate paths
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-13 13:07:50 +02:00
7aec6b910c Fix CLI usage
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-13 13:00:59 +02:00
5a3364a5ec Output generated folder
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-13 12:59:59 +02:00
53b16e9b4d Make pip quiet 2021-07-13 12:58:30 +02:00
df77e2c0ad Use absolute path
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-13 12:57:51 +02:00
c69d07ca9c Ignore repos 2021-07-13 12:57:25 +02:00
f28a8c84d7 Shuffle paths again
All checks were successful
continuous-integration/drone/push Build is passing
2021-07-13 12:54:23 +02:00
ae60862a85 Fix file path 2021-07-13 12:53:29 +02:00
4 changed files with 10 additions and 7 deletions

View File

@ -5,10 +5,8 @@ steps:
- name: generate new contents
image: python:alpine
environment:
OUTPUT_DIR: output
CALENDAR_URL: "https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"
commands:
- mkdir -p output
- ./generate.sh
- name: publish new contents
@ -16,9 +14,9 @@ steps:
settings:
host: lumbung.space
service: beta_lumbung_space_app
chdir: output
source: output
dest: /src/content
chdir: /drone/src
deploy_key:
from_secret: drone_ssh_lumbung.space
trigger:

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/lumbung-calendar-prototype/
/lumbung-video-prototype/

View File

@ -3,3 +3,5 @@
[![Build Status](https://drone.autonomic.zone/api/badges/ruangrupa/pubscripts/status.svg?ref=refs/heads/main)](https://drone.autonomic.zone/ruangrupa/pubscripts)
Publishing automation for [beta.lumbung.space](https://beta.lumbung.space).
These scripts run on the hour, powered by [Drone CI](https://drone.autonomic.zone/ruangrupa/pubscripts/settings/cron).

View File

@ -2,7 +2,6 @@
mkdir -p output
echo "Using $OUTPUT_DIR as output directory..."
echo "Using $CALENDAR_URL as Nextcloud calendar URL..."
clone_repos() {
@ -15,23 +14,25 @@ clone_repos() {
install_deps() {
cd lumbung-video-prototype
pip install -r requirements.txt
pip install -r requirements.txt -q
cd -
cd lumbung-calendar-prototype
pip install -r requirements.txt
pip install -r requirements.txt -q
cd -
}
gen_vid() {
export OUTPUT_DIR=/drone/src/output/video
cd lumbung-video-prototype
python video-feed.py
cd -
}
gen_cal() {
export OUTPUT_DIR=/drone/src/output/calendar
cd lumbung-calendar-prototype
python event-feed.py
python event_feed.py
cd -
}