This repository has been archived on 2021-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
pubscripts/generate.sh

43 lines
777 B
Bash
Raw Permalink Normal View History

2021-07-13 09:34:51 +00:00
#!/bin/sh
mkdir -p output
echo "Using $CALENDAR_URL as Nextcloud calendar URL..."
clone_repos() {
if ! type git > /dev/null 2>&1; then
apk add --no-cache git
fi
git clone https://git.autonomic.zone/ruangrupa/lumbung-video-prototype
git clone https://git.autonomic.zone/ruangrupa/lumbung-calendar-prototype
}
install_deps() {
cd lumbung-video-prototype
2021-07-13 11:00:59 +00:00
pip install -r requirements.txt -q
2021-07-13 09:34:51 +00:00
cd -
cd lumbung-calendar-prototype
2021-07-13 11:00:59 +00:00
pip install -r requirements.txt -q
2021-07-13 09:34:51 +00:00
cd -
}
gen_vid() {
2021-07-13 11:07:50 +00:00
export OUTPUT_DIR=/drone/src/output/video
2021-07-13 09:34:51 +00:00
cd lumbung-video-prototype
python video-feed.py
cd -
}
gen_cal() {
2021-07-13 11:07:50 +00:00
export OUTPUT_DIR=/drone/src/output/calendar
2021-07-13 09:34:51 +00:00
cd lumbung-calendar-prototype
2021-07-13 10:53:29 +00:00
python event_feed.py
2021-07-13 09:34:51 +00:00
cd -
}
clone_repos
install_deps
gen_vid
gen_cal