jdx / npm-register

Your own private npm registry and backup server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tag Docker images per version

milankinen opened this issue · comments

Hi!

We just started using our own private registry by using dickeyxxx/npm-register Docker image. However, we noticed that there is only latest tag in Dockerhub which worried our admins a little bit 'cause we can't ensure specific versions during our environment (re-)installations in future.

Could it be possible to start creating version tags per release to Dockerhub? If you see no problem in this setup, I can send a PR having e.g. postpublish script that does the Docker push and all necessary tagging based on project version found from package.json.

Any thoughts?

commented

certainly willing to accept a PR

This can be done in your docker hub configuration page. Just add an autobuild tag that match (regex) your tags schema and it will be automatically triggered when you push a new tag on github. In this way, when you publish the v3.0.0 tag on github, also the 3.0.0 tag of your image is released on docker hub.

In your case it should be something like /^v[0-9.]+$/.

This probably should be closed, this repo already has tags https://github.com/jdxcode/npm-register/tags therefore shouldn't be a problem to setup docker repo on docker hub