tools icon indicating copy to clipboard operation
tools copied to clipboard

Automate nox version upgrade

Open seanblumenfeld opened this issue 3 years ago • 3 comments

This change introduces a Github action to create a pull request whenever a new version of nox is detected on PyPi.

The Github action does the following:

  • installs the latest version of nox from PyPi
  • spits out that version into a requirements.txt file
  • uses peter-evans/create-pull-request@v3 github action to create a pull request if any files have changed. Thus, if a new version of nox has been found on PyPi the requirements.txt file will be detected as a changed file and a pull request will be created with the updated nox version.

If desired the settings for the pull request creation can be changed to auto merge. I'll leave that decision up to you @TheKevJames

seanblumenfeld avatar Sep 24 '21 14:09 seanblumenfeld

Related to issue https://github.com/TheKevJames/tools/issues/2

seanblumenfeld avatar Sep 24 '21 14:09 seanblumenfeld

I just noticed that you are already using renovate in this repo. So I have changed my PR to use a simple renovate config to manage the nox version.

seanblumenfeld avatar Sep 24 '21 14:09 seanblumenfeld

Hi @seanblumenfeld, thanks for the contribution! Unfortunately, there's a bit missing here before this will help out solving the problem entirely: we need to be able to correctly tag the image on dockerhub (and, ideally, in github) to denote releases. If you happen to be aware of any method of accomplishing this, that would be fantastic! As-is, bumping the version number in the dockerfile is only one of the pieces of the puzzle.

Dockerhub also recently changed its pricing on autobuilds, so orthogonally from this request I need to find some time to update my CI accordingly; I'll likely need to switch over to build&pushing images from CircleCI rather than relying on Dockerhub. That's probably irrelevant for this particular PR, but if it gives you any ideas on the tagging thing I'd be happy to hear them!

TheKevJames avatar Oct 05 '21 19:10 TheKevJames

Tackled this here and here. Thanks for the starting point! Should now do the autobuild/merge/tag/deploy stuff as well.

TheKevJames avatar Dec 24 '22 18:12 TheKevJames