Compare commits
10 Commits
92db098942
...
main
Author | SHA1 | Date | |
---|---|---|---|
309be57024 | |||
3d46d291bb | |||
ffb949366a | |||
7aec6b910c | |||
5a3364a5ec | |||
53b16e9b4d | |||
df77e2c0ad | |||
c69d07ca9c | |||
f28a8c84d7 | |||
ae60862a85 |
@ -5,10 +5,8 @@ steps:
|
|||||||
- name: generate new contents
|
- name: generate new contents
|
||||||
image: python:alpine
|
image: python:alpine
|
||||||
environment:
|
environment:
|
||||||
OUTPUT_DIR: 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
|
|
||||||
- ./generate.sh
|
- ./generate.sh
|
||||||
|
|
||||||
- name: publish new contents
|
- name: publish new contents
|
||||||
@ -16,9 +14,9 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
host: lumbung.space
|
host: lumbung.space
|
||||||
service: beta_lumbung_space_app
|
service: beta_lumbung_space_app
|
||||||
chdir: output
|
|
||||||
source: output
|
source: output
|
||||||
dest: /src/content
|
dest: /src/content
|
||||||
|
chdir: /drone/src
|
||||||
deploy_key:
|
deploy_key:
|
||||||
from_secret: drone_ssh_lumbung.space
|
from_secret: drone_ssh_lumbung.space
|
||||||
trigger:
|
trigger:
|
||||||
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/lumbung-calendar-prototype/
|
||||||
|
/lumbung-video-prototype/
|
@ -3,3 +3,5 @@
|
|||||||
[](https://drone.autonomic.zone/ruangrupa/pubscripts)
|
[](https://drone.autonomic.zone/ruangrupa/pubscripts)
|
||||||
|
|
||||||
Publishing automation for [beta.lumbung.space](https://beta.lumbung.space).
|
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).
|
||||||
|
@ -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() {
|
||||||
@ -15,23 +14,25 @@ clone_repos() {
|
|||||||
|
|
||||||
install_deps() {
|
install_deps() {
|
||||||
cd lumbung-video-prototype
|
cd lumbung-video-prototype
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt -q
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
cd lumbung-calendar-prototype
|
cd lumbung-calendar-prototype
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt -q
|
||||||
cd -
|
cd -
|
||||||
}
|
}
|
||||||
|
|
||||||
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