netbymatt / ws4kp

WeatherStar 4000+
https://weatherstar.netbymatt.com
MIT License
263 stars 44 forks source link

Add version tags to Docker build #35

Closed rmitchellscott closed 9 months ago

rmitchellscott commented 9 months ago

This PR will add the semver tags from Git to the Docker image builds. For code pushed to main, with a tag of v1.2.3 the following tags would get added:

latest
1
1.2
1.2.3
main
sha-1234567

Code pushed to branches other than main will have tags for their branch, and for their Git SHA, and will not be tagged with latest.

This PR also changes away from using a separate action to determine the SHA. The only difference to end users is that the Docker tag with the SHA will now be prefixed with sha-.