testing gh action with versioning
- Maintainer sets SOFTWARE_VERSION.
- New pushes to
master
branch trigger a build;VERSION
is updated, and tagged images are built and pushed to Docker Hub based onVERSION
,SOFTWARE_VERSION
(as well aslatest
).
- Check if the build version should go back to 0 if the software version changes. For example, if we were at
2.0.0--10
and we changed theSOFTWARE_VERSION
to3.0.0
, we would want the new version to be3.0.0--1
, not3.0.0--11
. We could alter this to change the build number to be a datetime instead, which would address this (and allow a user to determine which is a newer image still).