This commit is contained in:
parent
7aec6b910c
commit
ffb949366a
@ -5,10 +5,9 @@ steps:
|
|||||||
- name: generate new contents
|
- name: generate new contents
|
||||||
image: python:alpine
|
image: python:alpine
|
||||||
environment:
|
environment:
|
||||||
OUTPUT_DIR: /drone/src/output
|
|
||||||
CALENDAR_URL: "https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"
|
CALENDAR_URL: "https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p output
|
- mkdir -p output/{video,calendar}
|
||||||
- ./generate.sh
|
- ./generate.sh
|
||||||
- ls -lhaR /drone/src/output
|
- ls -lhaR /drone/src/output
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
mkdir -p output
|
mkdir -p output
|
||||||
|
|
||||||
echo "Using $OUTPUT_DIR as output directory..."
|
|
||||||
echo "Using $CALENDAR_URL as Nextcloud calendar URL..."
|
echo "Using $CALENDAR_URL as Nextcloud calendar URL..."
|
||||||
|
|
||||||
clone_repos() {
|
clone_repos() {
|
||||||
@ -24,12 +23,14 @@ install_deps() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gen_vid() {
|
gen_vid() {
|
||||||
|
export OUTPUT_DIR=/drone/src/output/video
|
||||||
cd lumbung-video-prototype
|
cd lumbung-video-prototype
|
||||||
python video-feed.py
|
python video-feed.py
|
||||||
cd -
|
cd -
|
||||||
}
|
}
|
||||||
|
|
||||||
gen_cal() {
|
gen_cal() {
|
||||||
|
export OUTPUT_DIR=/drone/src/output/calendar
|
||||||
cd lumbung-calendar-prototype
|
cd lumbung-calendar-prototype
|
||||||
python event_feed.py
|
python event_feed.py
|
||||||
cd -
|
cd -
|
||||||
|
Reference in New Issue
Block a user