monasca / pr-bot

Automatic version checker bot
Apache License 2.0
6 stars 1 forks source link

Support additional metadata in version tags #17

Open timothyb89 opened 7 years ago

timothyb89 commented 7 years ago

Version tags (especially for Docker images) often contain additional metadata about that entry in the repository. In most cases (at least that we care about) these are usually dash-separated tokens in the version, like python:3.6-alpine3.6.

In general we shouldn't automatically propose updates that would switch between different tags or "release trains". As an example, the bot generated an update to monasca-helm: https://github.com/monasca/monasca-helm/pull/185

In this case monasca-helm's client chart is using "released" image versions with standard semver tags (monasca/client:1.6.0 - we'd probably consider this a null tag) and the bot tried to update it to use monasca/client:master-20170918-185757 (master tag). Since monasca/client:1.7.0 was also published we should have used that release instead.

This introduces some problems: