Get notified on Mastodon for new Github releases

I’m selfhosting several services, mostly based on docker containers. Many of these are managed on Github and publish releases there. What annoys me is that I regularly miss updates.

I’m also quite active on Mastodon so I thought it would be handy to have a bot automatically scanning for new github releases and posting a new toot for every new release.

The bot can be configured to scan multiple different github repositories and publish to different mastodon accounts.

I have set up accounts for:

mastodon.social/mastodon.social/mastodon.social/mastodon.social/mastodon.social/

Here’s the code, if someone is interested in that:

codeberg.org/ryan_harg/github-releases-bot

Is this something that people find useful? Which other services would you like to see covered in that way?

rambos,

Is there any way to get those notifictions over selfhosted gotify?

American_Jesus,

You can get the rss of new releases with rss, and use rss plugin for Gotify
github.com/solarkennedy/gotify-rss
piraces.dev/…/github-releases-feed-atom/

rambos,

May I ask for some help please. I dont know how to use this command:


<span style="color:#323232;">$ make GOTIFY_VERSION="v2.0.5" FILE_SUFFIX="for-gotify-v2.0.5" build
</span>

Where should I type that? How can I build that plugin?

American_Jesus, (edited )

make GOTIFY_VERSION=“v2.0.5” FILE_SUFFIX=“for-gotify-v2.0.5” build

Use the gotify version according to the one installed on your system.
EX: make GOTIFY_VERSION=“v2.4.0” FILE_SUFFIX=“for-gotify-v2.4.0” build
for the latest release

the on build/you should have some .so files, copy the one for your machine arch to gotify plugins dir data/plugins

where a build for gotify v2.4.0 nowtransfer.de/3460c8e86670
copy only the one needed

rambos,

Copying your file to data/plugins worked! Now just have to wait for next feed to test it out. Thank you again <3

Still don’t know how to use command tho :D Sorry, I’m noob. Was trying to enter that command in terminal, but I get:


<span style="color:#323232;">make: *** No rule to make target 'build'.  Stop.
</span>
American_Jesus,

Assuming you are on a Debian/Ubuntu based distro, make sure you have the following packages installed build-essential golang

However Gotify recomends using docker to build plugins
gotify.net/docs/plugin-deploy#with-docker-recomme…

rambos,

Thank you! I use Debian 11, installed make, build-essential and golang, and still receiving the same message (feels like I should learn how to use these packages first).

Using your file was working, but unfortunately gotify container just stops after some time. I was reading the docs and I must admit I don’t understand a tiny bit :D. Spinning gotify server in docker container was super easy tho. I’d like to get this working, but feels bad for taking your time mate, and I even stole the thread (Sorry OP) lol.

gla3dr,

Why not just subscribe to the release notifications or use the releases atom feed?

eskuero,
@eskuero@lemmy.fromshado.ws avatar

I do it that way. Enable email notifications for new tagged releases, something arrives, check changelog, everything fine?

docker-compose pull; docker-compose down; docker-compose up -d

And we are done

Link,

You don’t need to run docker-compose down.

docker-compose pull; docker-compose up -d is enough

eskuero,
@eskuero@lemmy.fromshado.ws avatar

I guess that’s fair for single service composes but I don’t really trust composes with multiple services to gracefully handle only recreating one of the containers

7Sea_Sailor,

You can docker compose up -d <service> to (re)create only one service from your Dockerfile

BlackEco,
@BlackEco@lemmy.blackeco.com avatar

Exactly, I don’t get the “Mastodon as a poor man’s RSS agregator” trend

  • All
  • Subscribed
  • Moderated
  • Favorites
  • selfhosted@lemmy.world
  • PowerRangers
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • everett
  • hgfsjryuu7
  • Youngstown
  • slotface
  • khanakhh
  • rosin
  • ngwrru68w68
  • kavyap
  • tsrsr
  • GTA5RPClips
  • cisconetworking
  • modclub
  • vwfavf
  • osvaldo12
  • InstantRegret
  • ethstaker
  • Durango
  • mdbf
  • tester
  • normalnudes
  • cubers
  • tacticalgear
  • Leos
  • anitta
  • All magazines