Changing Twitter cover every sunrise and sunset with images from Unsplash and Nasa respectively.
export TWITTER_CONSUMER_KEY=""
export TWITTER_CONSUMER_SECRET=""
export TWITTER_ACCESS_TOKEN=""
export TWITTER_ACCESS_TOKEN_SECRET=""
export UNSPLASH_ACCESS_KEY=""
- Use online image
docker pull ghcr.io/thewapp/auto-twitter-cover:main
docker run -d --restart always --name auto-twitter-cover \
-e TWITTER_CONSUMER_KEY -e TWITTER_CONSUMER_SECRET \
-e TWITTER_ACCESS_TOKEN -e TWITTER_ACCESS_TOKEN_SECRET \
-e UNSPLASH_ACCESS_KEY \
ghcr.io/thewapp/auto-twitter-cover:main
- Use local image
docker build https://github.com/ThewApp/auto-twitter-cover.git#main -t auto-twitter-cover:main
docker run -d --restart always --name auto-twitter-cover \
-e TWITTER_CONSUMER_KEY -e TWITTER_CONSUMER_SECRET \
-e TWITTER_ACCESS_TOKEN -e TWITTER_ACCESS_TOKEN_SECRET \
-e UNSPLASH_ACCESS_KEY \
auto-twitter-cover:main
docker stop auto-twitter-cover && docker rm auto-twitter-cover