Self hosted FLOSS fitness/workout, nutrition and weight tracker
Bump version and document how the versions are parsed
Roland Geider85ac30cc05fb
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex 9f24a38f0..ee647015e 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -61,6 +61,9 @@ jobs:with:# Think if we want to also build branches, PRs, tags, etc.# https://github.com/docker/metadata-action+ #+ # - Release versions "2.7.0": latest, 2.7.0, 2.7+ # - Pre-release "2.8.0-dev.0": latest, 2.8.0-dev.0tags: |type=raw,value=latesttype=semver,pattern={{version}},value=${{ steps.version.outputs.version }}@@ -151,6 +154,7 @@ jobs:id: metauses: docker/metadata-action@v6with:+ # Keep in sync with the tags in build-prod, see the notes theretags: |type=raw,value=latesttype=semver,pattern={{version}},value=${{ needs.build-prod.outputs.version }}diff --git a/wger/version.py b/wger/version.pyindex b502fe4f4..e19fcc0e7 100644--- a/wger/version.py+++ b/wger/version.py@@ -35,13 +35,15 @@ Always use versions in the x.y.z format, without any suffixes like "beta1" or suMIN_SERVER_VERSION = Version('2.5.0')"""Minimum version of the server required to run sync commands on this server"""-VERSION_STRING = '2.7.0'+VERSION_STRING = '2.8.0-dev.0'"""Current version of the app.This literal is what the API reports and what .github/workflows/docker.ymlextracts to tag the images, so both agree. It must be valid semver: write-pre-releases as "2.8.0-dev", not "2.8.0.dev0".+pre-releases as "2.8.0-dev", not "2.8.0.dev0", otherwise the docker workflow+will silently produce no version tags (only a warning in the log) but the build+will complete successfully otherwise."""VERSION = Version(VERSION_STRING)