ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m42s
ci / docker-build (pull_request) Skipped
ci / publish (pull_request) Skipped
ci / announce (pull_request) Skipped
The webmail moves from dated versions (2026.10.26+gcff6f1f) to the INBUXA
suite's release numbers: 27.1 for a series, 27.1.3 for a patch, 27.1-rc.1
for a release candidate.
- VERSION names the release main is working towards. The commit tagged
inbuxa-v<VERSION> reports it bare; every other build adds +pr<N> or
+g<sha>, so a build between releases never passes for the release.
- Gitea's merge subject ("Merge pull request 'Title' (#76) from ...") is
now recognised. The dated scheme only knew GitHub's form, so every
Gitea merge went out as +g<sha>.
- CI publishes a release candidate as a pre-release, tagged 27.1-rc.N and
27.1-rc, never latest; a release moves its own tag, its series and
latest (scripts/release-version.sh, the console's helper). The GHCR
copy follows the same tags.
- deploy.example.sh does the same sum in shell, and still names a pre-27.1
tree by its date, so a rollback reports what it reported then.
- About explains the new form; the text is retranslated in all ten
catalogs.
Claude-Session: https://claude.ai/code/session_01Y2F7CWRXorttf5sjSbxwpj
35 lines
1.3 KiB
Bash
Executable File
35 lines
1.3 KiB
Bash
Executable File
#!/bin/sh
|
|
# The suite's release versions, as tags and images name them: 27.1 for a
|
|
# series, 27.1.3 for its patches, 27.1-rc.1 for a release candidate. The
|
|
# console carries the same helper; the server's tools/release/version.py is
|
|
# the same rule in its Cargo form.
|
|
#
|
|
# release-version.sh tags VERSION image tags, one per line: a release
|
|
# moves VERSION, its series and latest;
|
|
# a release candidate VERSION and
|
|
# <series>-rc, never latest
|
|
# release-version.sh prerelease VERSION exit 0 for a release candidate
|
|
#
|
|
# Anything else, including the old dated versions, is refused (exit 2).
|
|
# POSIX sh: it runs in the docker:cli image, which has no bash.
|
|
set -eu
|
|
|
|
usage() { sed -n '7,13p' "$0" >&2; exit 2; }
|
|
[ $# -eq 2 ] || usage
|
|
cmd=$1 v=$2
|
|
|
|
echo "$v" | grep -Eq '^[1-9][0-9]\.([1-9]|1[0-2])(\.[1-9][0-9]*|-rc\.[1-9][0-9]*)?$' \
|
|
|| { echo "$v is not YY.M, YY.M.N or YY.M-rc.N" >&2; exit 2; }
|
|
series=$(echo "$v" | sed -E 's/^([0-9]+\.[0-9]+).*/\1/')
|
|
case $v in *-rc.*) rc=1 ;; *) rc=0 ;; esac
|
|
|
|
case $cmd in
|
|
tags)
|
|
if [ $rc = 1 ]; then printf '%s\n%s-rc\n' "$v" "$series"
|
|
elif [ "$v" = "$series" ]; then printf '%s\nlatest\n' "$v"
|
|
else printf '%s\n%s\nlatest\n' "$v" "$series"
|
|
fi ;;
|
|
prerelease) [ $rc = 1 ] ;;
|
|
*) usage ;;
|
|
esac
|