0xERR0R / dex

Prometheus Docker EXporter
52 stars 8 forks source link

Add versioning to the docker image #89

Closed nmmsantos closed 6 months ago

nmmsantos commented 6 months ago

This PR changes Github actions to run a Go build and CodeQL on every branch of every fork, but only try to publish a docker image from the master branch from 0xERR0R. It will also tag the docker image with an auto incrementing patch semver (0.0.x) and tag the commit with the same version with the v prefix (v0.0.x). Major and minor versions should be manually created by git tag and the Github action will pick that up and continue from there.

The reasoning behind removing docker push from all repositories not owned by 0xERR0R is to not bother users with forks with errors, due to not having the secrets for docker hub defined.

Fixes #75.