feat: pull mastodon posts

This commit is contained in:
knoflook 2022-01-10 19:12:49 +01:00
parent 4ee293e74e
commit 0f1fe1dcdb
Signed by untrusted user: knoflook
GPG Key ID: D6A1D0E8FC4FEF1C

View File

@ -88,6 +88,26 @@ services:
done
"
hashtag:
image: decentral1se/beta.lumbung.space-scripts:latest
volumes:
- content:/src/content/mastodon
secrets:
- masto_key
environment:
OUTPUT_DIR: /src/content/feed
command: |
bash -c "
export MASTODON_AUTH_TOKEN=`cat /run/secrets/masto_key`;
while true
do
echo 'generating mastodon posts...'
/usr/local/bin/lumbunglib-hash
echo 'going to sleep for 5 minutes...'
sleep 300
done
"
volumes:
content:
@ -99,3 +119,7 @@ configs:
feeds_list:
name: beta_lumbung_space_feeds_list_v1
file: feeds_list.txt
secrets:
masto_key:
external: true