feat: pull mastodon posts
continuous-integration/drone/push Build is failing Details

This commit is contained in:
knoflook 2022-01-10 19:12:49 +01:00
parent 4ee293e74e
commit 0f1fe1dcdb
Signed by: knoflook
GPG Key ID: D6A1D0E8FC4FEF1C
1 changed files with 24 additions and 0 deletions

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