release.sh : tag annoté avec patchnote (affiché par le panneau MAJ)

This commit is contained in:
Roman
2026-09-25 15:39:07 +00:00
parent eae97f9129
commit 12bdc8a7ef
Executable → Regular
+3 -3
View File
@@ -2,11 +2,11 @@
# Publie une version d'OhmStreaming :
# bump de version → commit + tag git → build de l'image Docker → push registre Gitea.
#
# Usage : ./scripts/release.sh 0.2.0
# Usage : ./scripts/release.sh 0.2.0 ["patchnote multi-lignes"]
# Option : OHM_REGISTRY=git.lanro.eu/roman/ohm_streaming (défaut) pour viser un autre registre.
set -euo pipefail
VERSION="${1:?Usage : ./scripts/release.sh <version> (ex. 0.2.0)}"
VERSION="${1:?Usage : ./scripts/release.sh <version> [patchnote] (ex : 0.2.0)}"
REGISTRY="${OHM_REGISTRY:-git.lanro.eu/roman/ohm_streaming}"
cd "$(dirname "$0")/.."
@@ -30,7 +30,7 @@ git add pyproject.toml uv.lock
git commit -m "v$VERSION"
echo "▶ 2/3 Tag et push git"
git tag "$TAG"
git tag -a "$TAG" -m "${2:-$TAG}"
git push origin HEAD
git push origin "$TAG"