docker-pihole-unbound icon indicating copy to clipboard operation
docker-pihole-unbound copied to clipboard

Implement GitHub Actions for automated version bump

Open danieled-it opened this issue 2 years ago • 4 comments

Hey @chriscrowe , I've been a big fan and user of your one-container solution for a while now, and recently got interested in GitHub Actions.

Before randomly sending you a PR, I was wondering if you'd be interested in automating the process of:

  • Check the latest version of pihole/pihole
  • If pihole/pihole:latest is newer than cbcrowe/pihole-unbound:latest bump the version in this repo
  • Trigger build and push of new latest and YYYY.MM.N (following pihole's tags)
  • (Optional?) Create a tag in repo out of the newly committed version

I understand it's better to check the release notes of the latest pihole releases to make sure that you don't just blindly go and +1 it, but again if you think you'd like the idea just let me know.

danieled-it avatar Oct 06 '22 05:10 danieled-it

Much needed step.

tritethunder avatar Oct 10 '22 10:10 tritethunder

This is indeed nice. After reading your post @danieled-it I started to implement it in my fork to update a nightly-image through a scheduled task on my Windows-laptop. Also made one for latest (with no respect of version number then as I'm not aware of the new version-number yet).

I'm not familiar with Github Actions yet.

And ofcourse this morning a new release and had modified the script to check for a latest and then recreate the stuff but due to a typo this didn't work as designed from the taskscheduler, so had to do it manually. A new one is available now.

pluim003 avatar Oct 10 '22 12:10 pluim003

@chriscrowe I added a PR to mitigate this issue. where the build triggers daily and in case we have a new image it will create and push the new image and bump the tags in the docker registry.

tritethunder avatar Oct 13 '22 16:10 tritethunder

@chriscrowe I added a PR to mitigate this issue. where the build triggers daily and in case we have a new image it will create and push the new image and bump the tags in the docker registry.

I tried your suggestion in my fork. It took a while and stumbled on a 'typo'. Somewhere in your yml-file it says platform: linux/arm64/etc, but that didn't do the trick. Had to change it to the plural platforms.

pluim003 avatar Oct 25 '22 11:10 pluim003