Skip to content

armgit / wger

Public Imported from GitHub
0

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.yml
index 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.0
tags: |
type=raw,value=latest
type=semver,pattern={{version}},value=${{ steps.version.outputs.version }}
@@ -151,6 +154,7 @@ jobs:
id: meta
uses: docker/metadata-action@v6
with:
+ # Keep in sync with the tags in build-prod, see the notes there
tags: |
type=raw,value=latest
type=semver,pattern={{version}},value=${{ needs.build-prod.outputs.version }}
diff --git a/wger/version.py b/wger/version.py
index 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 su
MIN_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.yml
extracts 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)