feat: add content generation

See ruangrupa/living-room#17.
This commit is contained in:
cellarspoon
2022-01-05 12:53:04 +01:00
parent ce3e864008
commit d92732109f
4 changed files with 65 additions and 1 deletions

View File

@ -33,6 +33,41 @@ services:
- "traefik.http.services.coop-cloud-site.loadbalancer.server.port=1313"
- "traefik.http.routers.coop-cloud-site.tls.certresolver=production"
peertube:
image: decentral1se/beta.lumbung.space-scripts:latest
volumes:
- content:/src/content
environment:
OUTPUT_DIR: /src/content/video
command: |
bash -c "
while true
do
echo 'generating peertube posts...'
lumbunglib-vid
echo 'going to sleep for 5 minutes...'
sleep 300
done
"
calendar:
image: decentral1se/beta.lumbung.space-scripts:latest
volumes:
- content:/src/content
environment:
OUTPUT_DIR: /src/content/video
CALENDAR_URL: "https://cloud.lumbung.space/remote.php/dav/public-calendars/WbnHM8YdCkKT6bcT?export"
command: |
bash -c "
while true
do
echo 'generating calendar posts...'
lumbunglib-cal
echo 'going to sleep for 5 minutes...'
sleep 300
done
"
volumes:
content: